Neos\Flow\Tests\Unit\Cli\RequestBuilderTest::cliAccessWithPackageControllerAndActionNameBuildsCorrectRequest PHP Method

cliAccessWithPackageControllerAndActionNameBuildsCorrectRequest() public method

Checks if a CLI request specifying a package, controller and action name results in the expected request object
    public function cliAccessWithPackageControllerAndActionNameBuildsCorrectRequest()
    {
        $this->mockCommandManager->expects($this->once())->method('getCommandMethodParameters')->will($this->returnValue([]));
        $request = $this->requestBuilder->build('acme.test:default:list');
        $this->assertSame('Acme\\Test\\Command\\DefaultCommandController', $request->getControllerObjectName());
        $this->assertSame('list', $request->getControllerCommandName(), 'The CLI request specifying a package, controller and action name did not return a request object pointing to the expected action.');
    }