Neos\Flow\Tests\Unit\Mvc\Routing\UriBuilderTest::buildPrependsIndexFileIfRewriteUrlsIsOff PHP Méthode

buildPrependsIndexFileIfRewriteUrlsIsOff() public méthode

    public function buildPrependsIndexFileIfRewriteUrlsIsOff()
    {
        $this->mockRouter->expects($this->once())->method('resolve')->will($this->returnValue('resolvedUri'));
        $mockEnvironment = $this->getMockBuilder(Utility\Environment::class)->disableOriginalConstructor()->setMethods(['isRewriteEnabled'])->getMock();
        $this->inject($this->uriBuilder, 'environment', $mockEnvironment);
        $expectedResult = 'index.php/resolvedUri';
        $actualResult = $this->uriBuilder->build();
        $this->assertEquals($expectedResult, $actualResult);
    }
UriBuilderTest