diff --git a/tests/system/Router/AutoRouterImprovedTest.php b/tests/system/Router/AutoRouterImprovedTest.php index 0efecd2e50ac..9360352f4900 100644 --- a/tests/system/Router/AutoRouterImprovedTest.php +++ b/tests/system/Router/AutoRouterImprovedTest.php @@ -177,7 +177,7 @@ public function testAutoRouteFindsControllerWithSubfolder(): void = $router->getRoute('subfolder/mycontroller/somemethod', 'get'); $this->assertSame('Subfolder/', $directory); - $this->assertSame('\\' . \CodeIgniter\Router\Controllers\Subfolder\Mycontroller::class, $controller); + $this->assertSame('\\' . Controllers\Subfolder\Mycontroller::class, $controller); $this->assertSame('getSomemethod', $method); $this->assertSame([], $params); $this->assertSame([ @@ -195,7 +195,7 @@ public function testAutoRouteFindsControllerWithSubSubfolder() = $router->getRoute('subfolder/sub/mycontroller/somemethod', 'get'); $this->assertSame('Subfolder/Sub/', $directory); - $this->assertSame('\\' . \CodeIgniter\Router\Controllers\Subfolder\Sub\Mycontroller::class, $controller); + $this->assertSame('\\' . Controllers\Subfolder\Sub\Mycontroller::class, $controller); $this->assertSame('getSomemethod', $method); $this->assertSame([], $params); } @@ -209,7 +209,7 @@ public function testAutoRouteFindsDashedSubfolder(): void $this->assertSame('Dash_folder/', $directory); $this->assertSame( - '\\' . \CodeIgniter\Router\Controllers\Dash_folder\Mycontroller::class, + '\\' . Controllers\Dash_folder\Mycontroller::class, $controller ); $this->assertSame('getSomemethod', $method); @@ -281,7 +281,7 @@ public function testAutoRouteFallbackToDefaultControllerOneParam() = $router->getRoute('subfolder/15', 'get'); $this->assertSame('Subfolder/', $directory); - $this->assertSame('\\' . \CodeIgniter\Router\Controllers\Subfolder\Home::class, $controller); + $this->assertSame('\\' . Controllers\Subfolder\Home::class, $controller); $this->assertSame('getIndex', $method); $this->assertSame(['15'], $params); $this->assertSame([ @@ -299,7 +299,7 @@ public function testAutoRouteFallbackToDefaultControllerTwoParams() = $router->getRoute('subfolder/15/20', 'get'); $this->assertSame('Subfolder/', $directory); - $this->assertSame('\\' . \CodeIgniter\Router\Controllers\Subfolder\Home::class, $controller); + $this->assertSame('\\' . Controllers\Subfolder\Home::class, $controller); $this->assertSame('getIndex', $method); $this->assertSame(['15', '20'], $params); $this->assertSame([ @@ -317,7 +317,7 @@ public function testAutoRouteFallbackToDefaultControllerNoParams() = $router->getRoute('subfolder', 'get'); $this->assertSame('Subfolder/', $directory); - $this->assertSame('\\' . \CodeIgniter\Router\Controllers\Subfolder\Home::class, $controller); + $this->assertSame('\\' . Controllers\Subfolder\Home::class, $controller); $this->assertSame('getIndex', $method); $this->assertSame([], $params); $this->assertSame([