tests/Routing/RouterTest.php
/**
     * Tests domain groups and inheritance of domains in child routes.
     */
Tests domain groups and inheritance of domains in child routes.
Tests domain groups and inheritance of domains in child routes .
public function testDomainGroup()
    {
        $group = $this->router->createDomainGroup('{subdomain}.example.com', function() {
            $route = $this->router->createGetRoute('/', function() {});
            $this->assertEquals('{subdomain}.example.com', $route->group()->domain());
        });
        $this->assertEquals('{subdomain}.example.com', $group->domain());
    }
public function testDomainGroup ( ) { $ group = $ this -> router -> createDomainGroup ( '{subdomain}.example.com' , function ( ) { $ route = $ this -> router -> createGetRoute ( '/' , function ( ) { } ) ; $ this -> assertEquals ( '{subdomain}.example.com' , $ route -> group ( ) -> domain ( ) ) ; } ) ; $ this -> assertEquals ( '{subdomain}.example.com' , $ group -> domain ( ) ) ; }
Tests domain groups and inheritance of domains in child routes.
Tests domain groups and inheritance of domains in child routes .