From 760a507031bf1196fc077d35303fd8001d5ae388 Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Sat, 14 Oct 2023 16:47:56 +0800 Subject: [PATCH] style: fix the coding style. --- tests/system/Router/RouteCollectionTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/system/Router/RouteCollectionTest.php b/tests/system/Router/RouteCollectionTest.php index 43293c61bb1d..e12e42c33851 100644 --- a/tests/system/Router/RouteCollectionTest.php +++ b/tests/system/Router/RouteCollectionTest.php @@ -11,6 +11,7 @@ namespace CodeIgniter\Router; +use App\Controllers\Product; use CodeIgniter\Config\Services; use CodeIgniter\controller; use CodeIgniter\Exceptions\PageNotFoundException; @@ -1687,7 +1688,7 @@ public function testAutoRoutesControllerNameReturnsFQCN($namespace): void unlink(APPPATH . 'Controllers/Product.php'); - $this->assertSame('\App\\Controllers\\Product', $router->controllerName()); + $this->assertSame('\\' . Product::class, $router->controllerName()); } /** @@ -1710,7 +1711,7 @@ public function testRoutesControllerNameReturnsFQCN($namespace): void unlink(APPPATH . 'Controllers/Product.php'); - $this->assertSame('\App\\Controllers\\Product', $router->controllerName()); + $this->assertSame('\\' . Product::class, $router->controllerName()); } public function testRoutePriorityDetected(): void