Kraken\_Unit\Network\Http\Component\Router\HttpRouterTest::testApiRemoveRoute_RemovesRoute_WhenRouteDoesExist PHP Метод

testApiRemoveRoute_RemovesRoute_WhenRouteDoesExist() публичный Метод

    public function testApiRemoveRoute_RemovesRoute_WhenRouteDoesExist()
    {
        $server = $this->createServer();
        $router = $this->createRouter($server);
        $route = '/route';
        $router->addRoute($route, $this->createComponent());
        $this->assertTrue($router->existsRoute($route));
        $router->removeRoute($route);
        $this->assertFalse($router->existsRoute($route));
    }
HttpRouterTest