Neos\Flow\Tests\Unit\Mvc\Routing\RouterTest::resolveThrowsExceptionIfNoMatchingRouteWasFound PHP Method

resolveThrowsExceptionIfNoMatchingRouteWasFound() public method

    public function resolveThrowsExceptionIfNoMatchingRouteWasFound()
    {
        $router = $this->getAccessibleMock(Router::class, ['createRoutesFromConfiguration']);
        $this->inject($router, 'routerCachingService', $this->mockRouterCachingService);
        $this->inject($router, 'systemLogger', $this->mockSystemLogger);
        $route1 = $this->createMock(Route::class);
        $route1->expects($this->once())->method('resolves')->will($this->returnValue(false));
        $route2 = $this->createMock(Route::class);
        $route2->expects($this->once())->method('resolves')->will($this->returnValue(false));
        $mockRoutes = [$route1, $route2];
        $router->_set('routes', $mockRoutes);
        $router->resolve([]);
    }