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

argumentWithValueSeparatedByEqualSignBuildsCorrectRequest() public method

    public function argumentWithValueSeparatedByEqualSignBuildsCorrectRequest()
    {
        $methodParameters = ['testArgument' => ['optional' => false, 'type' => 'string']];
        $this->mockCommandManager->expects($this->once())->method('getCommandMethodParameters')->with('Acme\\Test\\Command\\DefaultCommandController', 'listCommand')->will($this->returnValue($methodParameters));
        $request = $this->requestBuilder->build('acme.test:default:list --test-argument=value');
        $this->assertTrue($request->hasArgument('testArgument'), 'The given "testArgument" was not found in the built request.');
        $this->assertSame($request->getArgument('testArgument'), 'value', 'The "testArgument" had not the given value.');
    }