diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b4798d..9671a67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +### 0.11.0 + +##### 2023-05-20 + +- Upgrade gacela:^1.4 and container:^0.5 + ### 0.10.0 ##### 2023-04-27 @@ -76,4 +82,4 @@ ##### 2023-04-10 -- Initial release \ No newline at end of file +- Initial release diff --git a/composer.json b/composer.json index bc9e8f6..f2e843c 100644 --- a/composer.json +++ b/composer.json @@ -4,12 +4,12 @@ "license": "MIT", "require": { "php": ">=8.0.2", - "gacela-project/container": "^0.4" + "gacela-project/container": "^0.5" }, "require-dev": { "ext-mbstring": "*", "friendsofphp/php-cs-fixer": "^3.16", - "gacela-project/gacela": "^1.3", + "gacela-project/gacela": "^1.4", "infection/infection": "^0.26", "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^9.6", @@ -18,7 +18,7 @@ "vimeo/psalm": "^5.11" }, "suggest": { - "gacela-project/gacela": "^1.3" + "gacela-project/gacela": "^1.4" }, "config": { "platform": { diff --git a/tests/Feature/Config/RouterConfigTest.php b/tests/Feature/Config/RouterConfigTest.php index fd1fee7..b36d9bc 100644 --- a/tests/Feature/Config/RouterConfigTest.php +++ b/tests/Feature/Config/RouterConfigTest.php @@ -20,15 +20,16 @@ protected function setUp(): void { Gacela::bootstrap(__DIR__, static function (GacelaConfig $config): void { $config->resetInMemoryCache(); + $config->extendGacelaConfig(RouterGacelaConfig::class); - $config->addExtendConfig(RouterGacelaConfig::class); - - $config->addPlugin(NameRoutesPlugin::class); - $config->addPlugin(RootRoutesPlugin::class); + $config->addPlugins([ + NameRoutesPlugin::class, + RootRoutesPlugin::class, + ]); }); } - public function test_root_routes_plugin(): void + public function test_root_route_plugin(): void { $_SERVER['REQUEST_URI'] = 'https://example.org/'; $_SERVER['REQUEST_METHOD'] = Request::METHOD_GET; @@ -38,7 +39,7 @@ public function test_root_routes_plugin(): void $this->expectOutputString(json_encode(['hello' => 'bob?'])); } - public function test_name_routes_plugin(): void + public function test_name_route_plugin(): void { $_SERVER['REQUEST_URI'] = 'https://example.org/alice'; $_SERVER['REQUEST_METHOD'] = Request::METHOD_GET;