Skip to content

Commit

Permalink
Update EdgeAltoRouterTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Acksop authored Mar 1, 2024
1 parent 61469cb commit 4e1cfea
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/EdgeAltoRouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,17 +601,24 @@ public function testSetRouteFromConfig()
;
$this->assertEquals([$method, $route, $target, ''], $routes[1]);

/*$this->assertEquals([
$this->assertEquals([
'target' => 'home#index',
'params' => [],
'name' => 'home'
], $this->router->match('/home#index', 'GET'));*/
], $this->router->match('/', 'GET'));

/*$this->assertEquals([
$this->assertEquals([
'target' => 'home#index',
'params' => [],
'name' => 'home'
], $this->router->match('/home#index', 'POST'));*/
], $this->router->match('/', 'POST'));

$this->assertEquals([
'target' => ['c' => 'UserController','a' => 'ListAction'],
'params' => [],
'name' => ''
], $this->router->match('/users/', 'GET'));


$this->assertEquals([
'target' => 'users#show',
Expand Down

0 comments on commit 4e1cfea

Please sign in to comment.