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

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

    public function uriForSetsFormatArgumentIfSpecified()
    {
        $expectedArguments = ['@action' => 'index', '@controller' => 'somecontroller', '@package' => 'somepackage', '@format' => 'someformat'];
        $this->uriBuilder->setFormat('SomeFormat');
        $this->uriBuilder->uriFor('index', [], 'SomeController', 'SomePackage');
        $this->assertEquals($expectedArguments, $this->uriBuilder->getLastArguments());
    }
UriBuilderTest