tests/Routing/RouterTest.php
/**
     * Tests the generation, storage, and concatenation of names via groups.
     */
Tests the generation, storage, and concatenation of names via groups.
Tests the generation storage and concatenation of names via groups .
public function testNameGroup()
    {
        $group = $this->router->createNameGroup('test.', function() {
            $route = $this->router->createGetRoute('/', function() {})->name('index');
            $this->assertEquals('test.index', $route->name());
        });
        $this->assertEquals('test.', $group->namePrefix());
    }
public function testNameGroup ( ) { $ group = $ this -> router -> createNameGroup ( 'test.' , function ( ) { $ route = $ this -> router -> createGetRoute ( '/' , function ( ) { } ) -> name ( 'index' ) ; $ this -> assertEquals ( 'test.index' , $ route -> name ( ) ) ; } ) ; $ this -> assertEquals ( 'test.' , $ group -> namePrefix ( ) ) ; }
Tests the generation, storage, and concatenation of names via groups.
Tests the generation storage and concatenation of names via groups .