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

optionsAreNotMappedToCommandArgumentsIfTheyAreUnnamed() public method

    public function optionsAreNotMappedToCommandArgumentsIfTheyAreUnnamed()
    {
        $methodParameters = ['requiredArgument1' => ['optional' => false, 'type' => 'string'], 'requiredArgument2' => ['optional' => false, 'type' => 'string'], 'booleanOption' => ['optional' => true, 'type' => 'boolean']];
        $this->mockCommandManager->expects($this->once())->method('getCommandMethodParameters')->with('Acme\\Test\\Command\\DefaultCommandController', 'listCommand')->will($this->returnValue($methodParameters));
        $expectedArguments = ['requiredArgument1' => 'firstArgumentValue', 'requiredArgument2' => 'secondArgumentValue'];
        $request = $this->requestBuilder->build('acme.test:default:list firstArgumentValue secondArgumentValue true');
        $this->assertSame($expectedArguments, $request->getArguments());
    }