Skip to content

Commit

Permalink
Merge pull request #8427 from kenjis/fix-RouteCollectionTest-style
Browse files Browse the repository at this point in the history
[4.5] test: fix incorrect case classname
  • Loading branch information
kenjis authored Jan 18, 2024
2 parents 0da6311 + f3d4009 commit e931659
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/system/Router/RouteCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1850,14 +1850,14 @@ public function testGetRegisteredControllersReturnsControllerForHTTPverb(): void
$collection->get('test', '\App\Controllers\Hello::get');
$collection->post('test', '\App\Controllers\Hello::post');

$routes = $collection->getRegisteredControllers(METHOD::GET);
$routes = $collection->getRegisteredControllers(Method::GET);

$expects = [
'\App\Controllers\Hello',
];
$this->assertSame($expects, $routes);

$routes = $collection->getRegisteredControllers(METHOD::POST);
$routes = $collection->getRegisteredControllers(Method::POST);

$expects = [
'\App\Controllers\Hello',
Expand All @@ -1871,7 +1871,7 @@ public function testGetRegisteredControllersReturnsTwoControllers(): void
$collection->post('test', '\App\Controllers\Test::post');
$collection->post('hello', '\App\Controllers\Hello::post');

$routes = $collection->getRegisteredControllers(METHOD::POST);
$routes = $collection->getRegisteredControllers(Method::POST);

$expects = [
'\App\Controllers\Test',
Expand All @@ -1886,7 +1886,7 @@ public function testGetRegisteredControllersReturnsOneControllerWhenTwoRoutsWith
$collection->post('test', '\App\Controllers\Test::test');
$collection->post('hello', '\App\Controllers\Test::hello');

$routes = $collection->getRegisteredControllers(METHOD::POST);
$routes = $collection->getRegisteredControllers(Method::POST);

$expects = [
'\App\Controllers\Test',
Expand Down Expand Up @@ -1917,7 +1917,7 @@ public function testGetRegisteredControllersReturnsControllerByAddMethod(): void
$collection->get('test', '\App\Controllers\Hello::get');
$collection->add('hello', '\App\Controllers\Test::hello');

$routes = $collection->getRegisteredControllers(METHOD::GET);
$routes = $collection->getRegisteredControllers(Method::GET);

$expects = [
'\App\Controllers\Hello',
Expand Down

0 comments on commit e931659

Please sign in to comment.