From 121f94676d7510d356cf76da93549a67499ae831 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 5 Dec 2025 01:03:43 +1300 Subject: [PATCH] Fix test --- .../Modules/Databases/Http/Databases/Collections/Create.php | 1 + .../e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php index 7794e01106..4ce831f200 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php @@ -29,6 +29,7 @@ use Utopia\Validator\ArrayList; use Utopia\Validator\Boolean; use Utopia\Validator\JSON; use Utopia\Validator\Nullable; +use Utopia\Validator\Text; class Create extends Action { diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php index dd93f6252a..1d5815e144 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php @@ -7119,7 +7119,7 @@ class DatabasesCustomServerTest extends Scope ], ]); - $this->assertEquals(400, $collection['headers']['status-code'], 'Got ' . $collection['headers']['status-code'] . ': ' . json_encode($collection['body'])); + $this->assertEquals(400, $collection['headers']['status-code']); $this->assertStringContainsString('Invalid type', $collection['body']['message']); // Cleanup