diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-09-05 06:40:18 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-09-05 06:40:18 +0300 |
commit | 9adce4003440768ff8cb73096bb483af4166f6de (patch) | |
tree | d41f361f1906e6f8ea0885907d155d32733a5b54 /test | |
parent | 776c6ad41f78c961109f1db59f8cdd9baa8f9a06 (diff) |
Extract controllers from HomeController
Extracts CollationConnectionController, GitInfoController and
RecentTablesListController controllers from HomeController.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/RoutingTest.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/classes/RoutingTest.php b/test/classes/RoutingTest.php index 13527e60be..3408311bea 100644 --- a/test/classes/RoutingTest.php +++ b/test/classes/RoutingTest.php @@ -20,14 +20,10 @@ class RoutingTest extends AbstractTestCase { $dispatcher = Routing::getDispatcher(); $this->assertInstanceOf(Dispatcher::class, $dispatcher); - $this->assertSame([ - Dispatcher::FOUND, - [ - HomeController::class, - 'index', - ], - [], - ], $dispatcher->dispatch('GET', '/')); + $this->assertSame( + [Dispatcher::FOUND, HomeController::class, []], + $dispatcher->dispatch('GET', '/') + ); } /** |