Neos\Flow\Tests\Unit\Mvc\Routing\UriBuilderTest::uriForSetsControllerFromRequestIfControllerIsNotSet PHP Метод

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

    public function uriForSetsControllerFromRequestIfControllerIsNotSet()
    {
        $this->mockMainRequest->expects($this->once())->method('getControllerName')->will($this->returnValue('SomeControllerFromRequest'));
        $expectedArguments = ['@action' => 'index', '@controller' => 'somecontrollerfromrequest', '@package' => 'somepackage'];
        $this->uriBuilder->uriFor('index', [], null, 'SomePackage');
        $this->assertEquals($expectedArguments, $this->uriBuilder->getLastArguments());
    }
UriBuilderTest