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

exceedingArgumentsMayBeSpecified() public method

    public function exceedingArgumentsMayBeSpecified()
    {
        $methodParameters = ['testArgument1' => ['optional' => false, 'type' => 'string'], 'testArgument2' => ['optional' => false, 'type' => 'string']];
        $this->mockCommandManager->expects($this->once())->method('getCommandMethodParameters')->with('Acme\\Test\\Command\\DefaultCommandController', 'listCommand')->will($this->returnValue($methodParameters));
        $expectedArguments = ['testArgument1' => 'firstArgumentValue', 'testArgument2' => 'secondArgumentValue'];
        $request = $this->requestBuilder->build('acme.test:default:list --test-argument1=firstArgumentValue --test-argument2 secondArgumentValue exceedingArgument1');
        $this->assertSame($expectedArguments, $request->getArguments());
        $this->assertSame(['exceedingArgument1'], $request->getExceedingArguments());
    }