tests/Routing/RouterTest.php
/**
     * Tests that a view route is properly generated and correctly points to the ViewActionController.
     */
Tests that a view route is properly generated and correctly points to the ViewActionController.
Tests that a view route is properly generated and correctly points to the ViewActionController .
public function testGenerateViewRoute()
    {
        $route = $this->router->createViewRoute('/', 'test');
        $this->assertEquals(Router::$verbs, $route->methods());
        $this->assertEquals('/', $route->uri());
        $this->assertEquals('Horizon\Routing\Controllers\ViewActionController::__invoke', $route->action());
    }
public function testGenerateViewRoute ( ) { $ route = $ this -> router -> createViewRoute ( '/' , 'test' ) ; $ this -> assertEquals ( Router :: $ verbs , $ route -> methods ( ) ) ; $ this -> assertEquals ( '/' , $ route -> uri ( ) ) ; $ this -> assertEquals ( 'Horizon\Routing\Controllers\ViewActionController::__invoke' , $ route -> action ( ) ) ; }
Tests that a view route is properly generated and correctly points to the ViewActionController.
Tests that a view route is properly generated and correctly points to the ViewActionController .