1
0
Fork 0
mirror of synced 2024-06-30 04:00:34 +12:00

Update framework to fix route mismatches

(cherry picked from commit d42f6738a9)

# Conflicts:
#	composer.lock
This commit is contained in:
Jake Barnby 2023-05-30 14:07:12 +12:00
parent 67ad856490
commit c2e711b021
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
3 changed files with 27 additions and 11 deletions

View file

@ -51,7 +51,7 @@
"utopia-php/config": "0.2.*",
"utopia-php/database": "0.36.*",
"utopia-php/domains": "1.1.*",
"utopia-php/framework": "0.28.*",
"utopia-php/framework": "dev-fix-route-mistmatch as 0.28.1",
"utopia-php/image": "0.5.*",
"utopia-php/locale": "0.4.*",
"utopia-php/logger": "0.3.*",

30
composer.lock generated
View file

@ -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": "169ab6e7dd540e45309d3c5093506fad",
"content-hash": "6b8b1c976fb0a44257d3820fe87af179",
"packages": [
{
"name": "adhocore/jwt",
@ -2221,23 +2221,24 @@
},
{
"name": "utopia-php/framework",
"version": "0.28.1",
"version": "dev-fix-route-mistmatch",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/framework.git",
"reference": "7f22c556fc5991e54e5811a68fb39809b21bda55"
"reference": "e8e12a880539679010b86576e843be9f4c7f3329"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/framework/zipball/7f22c556fc5991e54e5811a68fb39809b21bda55",
"reference": "7f22c556fc5991e54e5811a68fb39809b21bda55",
"url": "https://api.github.com/repos/utopia-php/framework/zipball/e8e12a880539679010b86576e843be9f4c7f3329",
"reference": "e8e12a880539679010b86576e843be9f4c7f3329",
"shasum": ""
},
"require": {
"php": ">=8.0.0"
"php": ">=8.0"
},
"require-dev": {
"laravel/pint": "^1.2",
"phpstan/phpstan": "1.9.x-dev",
"phpunit/phpunit": "^9.5.25",
"vimeo/psalm": "4.27.0"
},
@ -2259,9 +2260,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/framework/issues",
"source": "https://github.com/utopia-php/framework/tree/0.28.1"
"source": "https://github.com/utopia-php/framework/tree/fix-route-mistmatch"
},
"time": "2023-03-02T08:16:01+00:00"
"time": "2023-05-30T01:59:18+00:00"
},
{
"name": "utopia-php/image",
@ -5652,9 +5653,18 @@
"time": "2023-02-08T07:49:20+00:00"
}
],
"aliases": [],
"aliases": [
{
"package": "utopia-php/framework",
"version": "dev-fix-route-mistmatch",
"alias": "0.28.1",
"alias_normalized": "0.28.1.0"
}
],
"minimum-stability": "stable",
"stability-flags": [],
"stability-flags": {
"utopia-php/framework": 20
},
"prefer-stable": false,
"prefer-lowest": false,
"platform": {

View file

@ -1086,6 +1086,12 @@ trait DatabasesBase
$this->assertEquals(400, $document4['headers']['status-code']);
// Delete document 4 with incomplete path
$this->assertEquals(404, $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()))['headers']['status-code']);
return $data;
}