From ae4e79518b8d543539c9f8291d302cc03b2e5989 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 18 Feb 2026 14:59:25 +1300 Subject: [PATCH] fix: remaining testCreateAttributes undefined variable references - Change $data['moviesId'] to $moviesId at integers2 attribute creation - Change $data['actorsId'] to $actorsId at relationship assertion Co-Authored-By: Claude Opus 4.6 --- tests/e2e/Services/Databases/DatabasesBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Services/Databases/DatabasesBase.php b/tests/e2e/Services/Databases/DatabasesBase.php index 1d90668b76..bc70df7038 100644 --- a/tests/e2e/Services/Databases/DatabasesBase.php +++ b/tests/e2e/Services/Databases/DatabasesBase.php @@ -980,7 +980,7 @@ trait DatabasesBase $this->assertEquals($datetime['body']['required'], false); // to meet mongodb duplicate attributes index limit - $integers2 = $this->client->call(Client::METHOD_POST, $this->getSchemaUrl($databaseId, $data['moviesId']) . '/integer', array_merge([ + $integers2 = $this->client->call(Client::METHOD_POST, $this->getSchemaUrl($databaseId, $moviesId) . '/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -999,7 +999,7 @@ trait DatabasesBase $this->assertEquals($relationship['headers']['status-code'], 202); $this->assertEquals($relationship['body']['key'], 'starringActors'); $this->assertEquals($relationship['body']['type'], 'relationship'); - $this->assertEquals($relationship['body'][$this->getRelatedResourceKey()], $data['actorsId']); + $this->assertEquals($relationship['body'][$this->getRelatedResourceKey()], $actorsId); $this->assertEquals($relationship['body']['relationType'], 'oneToMany'); $this->assertEquals($relationship['body']['twoWay'], true); $this->assertEquals($relationship['body']['twoWayKey'], 'movie');