Fix static user refs

This commit is contained in:
Jake Barnby
2025-08-19 23:13:47 +12:00
parent 64fd27ee06
commit 6f170fdb6d
3 changed files with 7 additions and 7 deletions
@@ -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);
}
+3 -3
View File
@@ -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;
+2 -2
View File
@@ -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();
}