/**
  * @test
  * @author Karsten Dambekalns <*****@*****.**>
  */
 public function buildPrependsIndexFileIfRewriteUrlsIsOff()
 {
     $this->router->expects($this->once())->method('resolve')->will($this->returnValue('resolvedUri'));
     $mockEnvironment = $this->getMock('F3\\FLOW3\\Utility\\Environment', array('isRewriteEnabled'), array(), '', FALSE);
     $this->uriBuilder->injectEnvironment($mockEnvironment);
     $expectedResult = 'index.php/resolvedUri';
     $actualResult = $this->uriBuilder->build();
     $this->assertEquals($expectedResult, $actualResult);
 }