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