Skip to content

Commit 185619b

Browse files
committed
fixed broken assertions in RouterTest::testRouterPriorDirectory
1 parent f1dc863 commit 185619b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/system/Router/RouterTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Config\Modules;
88
use CodeIgniter\Exceptions\PageNotFoundException;
99

10-
1110
class RouterTest extends CIUnitTestCase
1211
{
1312

@@ -732,9 +731,9 @@ public function testRouterPriorDirectory()
732731
$router->setDirectory('foo/bar/baz', false, true);
733732
$router->handle('Some_controller/some_method/param1/param2/param3');
734733

735-
$this->assertEquals('', $router->directory());
736-
$this->assertEquals('', $router->controllerName());
737-
$this->assertEquals('', $router->methodName());
734+
$this->assertEquals('foo/bar/baz/', $router->directory());
735+
$this->assertEquals('Some_controller', $router->controllerName());
736+
$this->assertEquals('some_method', $router->methodName());
738737
}
739738

740739
public function testSetDirectoryValid()

0 commit comments

Comments
 (0)