mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
Check tests
This commit is contained in:
parent
1aea95c6a9
commit
ffb3a522b0
4 changed files with 13 additions and 12 deletions
|
|
@ -52,7 +52,7 @@
|
|||
"utopia-php/cache": "0.13.*",
|
||||
"utopia-php/cli": "0.15.*",
|
||||
"utopia-php/config": "0.2.*",
|
||||
"utopia-php/database": "0.71.*",
|
||||
"utopia-php/database": "0.72.*",
|
||||
"utopia-php/detector": "0.1.*",
|
||||
"utopia-php/domains": "0.8.*",
|
||||
"utopia-php/dsn": "0.2.1",
|
||||
|
|
|
|||
16
composer.lock
generated
16
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "ab1e70292d43534acfbab067f0341181",
|
||||
"content-hash": "040a8234ecf1038a7e6dc16aa2dda084",
|
||||
"packages": [
|
||||
{
|
||||
"name": "adhocore/jwt",
|
||||
|
|
@ -3493,16 +3493,16 @@
|
|||
},
|
||||
{
|
||||
"name": "utopia-php/database",
|
||||
"version": "0.71.10",
|
||||
"version": "0.72.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/utopia-php/database.git",
|
||||
"reference": "83278d663f9c63c25a11d9e71c7922da7ec48636"
|
||||
"reference": "276fffbf889a455fefd5f3dcda89f249a92fd5e2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/83278d663f9c63c25a11d9e71c7922da7ec48636",
|
||||
"reference": "83278d663f9c63c25a11d9e71c7922da7ec48636",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/276fffbf889a455fefd5f3dcda89f249a92fd5e2",
|
||||
"reference": "276fffbf889a455fefd5f3dcda89f249a92fd5e2",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -3543,9 +3543,9 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/utopia-php/database/issues",
|
||||
"source": "https://github.com/utopia-php/database/tree/0.71.10"
|
||||
"source": "https://github.com/utopia-php/database/tree/0.72.0"
|
||||
},
|
||||
"time": "2025-07-18T00:05:55+00:00"
|
||||
"time": "2025-07-21T03:45:49+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/detector",
|
||||
|
|
@ -8239,7 +8239,7 @@
|
|||
],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": {},
|
||||
"stability-flags": [],
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
|
|
|
|||
|
|
@ -187,6 +187,7 @@ class Create extends Action
|
|||
$collection->getAttribute('attributes'),
|
||||
$dbForProject->getAdapter()->getMaxIndexLength(),
|
||||
$dbForProject->getAdapter()->getInternalIndexesKeys(),
|
||||
$dbForProject->getAdapter()->getSupportForIndexArray()
|
||||
);
|
||||
|
||||
if (!$validator->isValid($index)) {
|
||||
|
|
|
|||
|
|
@ -438,7 +438,7 @@ trait DatabasesBase
|
|||
]);
|
||||
$this->assertEquals(202, $attribute['headers']['status-code']);
|
||||
$this->assertEquals($attribute['body']['size'], 100);
|
||||
|
||||
var_dump($attribute);
|
||||
sleep(1);
|
||||
|
||||
$index = $this->client->call(Client::METHOD_POST, '/databases/'.$databaseId.'/collections/'.$collection['body']['$id'].'/indexes', array_merge([
|
||||
|
|
@ -453,7 +453,7 @@ trait DatabasesBase
|
|||
$this->assertEquals(202, $index['headers']['status-code']);
|
||||
|
||||
sleep(1);
|
||||
|
||||
var_dump($index);
|
||||
/**
|
||||
* Update attribute size to exceed Index maximum length
|
||||
*/
|
||||
|
|
@ -466,7 +466,7 @@ trait DatabasesBase
|
|||
'required' => true,
|
||||
'default' => null,
|
||||
]);
|
||||
|
||||
var_dump($attribute);
|
||||
$this->assertEquals(400, $attribute['headers']['status-code']);
|
||||
$this->assertStringContainsString('Index length is longer than the maximum: 76', $attribute['body']['message']);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue