From e00dacf9a2b9f3da012f41cf597afc8580233da1 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 3 Dec 2025 23:24:05 +1300 Subject: [PATCH] Fix test --- .../Services/Databases/Legacy/DatabasesCustomServerTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php index 0edcf27108..aff8cdde77 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php @@ -7017,7 +7017,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $collection['headers']['status-code']); - // Test: String attribute without size + // Test: String attribute without size (should fail - size is required for strings) $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -7033,8 +7033,7 @@ class DatabasesCustomServerTest extends Scope ], ]); - // Should succeed with default size - $this->assertEquals(201, $collection['headers']['status-code']); + $this->assertEquals(400, $collection['headers']['status-code']); // Test: Required attribute with default value (should fail) $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([