Skip to content

Commit 121f946

Browse files
committed
Fix test
1 parent df94765 commit 121f946

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use Utopia\Validator\Boolean;
3030
use Utopia\Validator\JSON;
3131
use Utopia\Validator\Nullable;
32+
use Utopia\Validator\Text;
3233

3334
class Create extends Action
3435
{

tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7119,7 +7119,7 @@ public function testCreateCollectionWithAttributesAndIndexesErrors(): void
71197119
],
71207120
]);
71217121

7122-
$this->assertEquals(400, $collection['headers']['status-code'], 'Got ' . $collection['headers']['status-code'] . ': ' . json_encode($collection['body']));
7122+
$this->assertEquals(400, $collection['headers']['status-code']);
71237123
$this->assertStringContainsString('Invalid type', $collection['body']['message']);
71247124

71257125
// Cleanup

0 commit comments

Comments
 (0)