diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php index 8b62034c31..2c663478dc 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php @@ -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); } diff --git a/tests/e2e/Services/GraphQL/AccountTest.php b/tests/e2e/Services/GraphQL/AccountTest.php index d613c1630d..9dd224f1a1 100644 --- a/tests/e2e/Services/GraphQL/AccountTest.php +++ b/tests/e2e/Services/GraphQL/AccountTest.php @@ -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; diff --git a/tests/e2e/Services/GraphQL/UsersTest.php b/tests/e2e/Services/GraphQL/UsersTest.php index e94b8492df..7093c354a0 100644 --- a/tests/e2e/Services/GraphQL/UsersTest.php +++ b/tests/e2e/Services/GraphQL/UsersTest.php @@ -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(); }