mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix static user refs
This commit is contained in:
+2
-2
@@ -26,11 +26,11 @@ abstract class Action extends AppwriteAction
|
||||
if (str_contains($path, '/tablesdb/')) {
|
||||
$this->context = ROWS;
|
||||
}
|
||||
|
||||
|
||||
// Use the same helper method to ensure consistency
|
||||
$contextId = '$' . $this->getCollectionsEventsContext() . 'Id';
|
||||
$this->removableAttributes = ['$databaseId', $contextId];
|
||||
|
||||
|
||||
return parent::setHttpPath($path);
|
||||
}
|
||||
|
||||
|
||||
@@ -427,7 +427,7 @@ class AccountTest extends Scope
|
||||
$this->assertIsArray($account['body']['data']['accountUpdateStatus']);
|
||||
$this->assertEquals(false, $account['body']['data']['accountUpdateStatus']['status']);
|
||||
|
||||
unset(self::user[$this->getProject()['$id']]);
|
||||
unset(self::$user[$this->getProject()['$id']]);
|
||||
$this->getUser();
|
||||
|
||||
return $account;
|
||||
@@ -475,7 +475,7 @@ class AccountTest extends Scope
|
||||
$this->assertIsNotArray($account['body']);
|
||||
$this->assertEquals(204, $account['headers']['status-code']);
|
||||
|
||||
unset(self::user[$this->getProject()['$id']]);
|
||||
unset(self::$user[$this->getProject()['$id']]);
|
||||
$this->getUser();
|
||||
|
||||
return $account;
|
||||
@@ -500,7 +500,7 @@ class AccountTest extends Scope
|
||||
$this->assertIsNotArray($account['body']);
|
||||
$this->assertEquals(204, $account['headers']['status-code']);
|
||||
|
||||
unset(self::user[$this->getProject()['$id']]);
|
||||
unset(self::$user[$this->getProject()['$id']]);
|
||||
$this->getUser();
|
||||
|
||||
return $account;
|
||||
|
||||
@@ -503,7 +503,7 @@ class UsersTest extends Scope
|
||||
$this->assertIsNotArray($user['body']);
|
||||
$this->assertEquals(204, $user['headers']['status-code']);
|
||||
|
||||
unset(self::user[$this->getProject()['$id']]);
|
||||
unset(self::$user[$this->getProject()['$id']]);
|
||||
$this->getUser();
|
||||
}
|
||||
|
||||
@@ -527,7 +527,7 @@ class UsersTest extends Scope
|
||||
$this->assertIsNotArray($user['body']);
|
||||
$this->assertEquals(204, $user['headers']['status-code']);
|
||||
|
||||
unset(self::user[$this->getProject()['$id']]);
|
||||
unset(self::$user[$this->getProject()['$id']]);
|
||||
$this->getUser();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user