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

booleanOptionsCanHaveOnlyCertainValuesIfTheValueIsAssignedWithoutEqualSign() public method

    public function booleanOptionsCanHaveOnlyCertainValuesIfTheValueIsAssignedWithoutEqualSign()
    {
        $methodParameters = ['b1' => ['optional' => true, 'type' => 'boolean'], 'b2' => ['optional' => true, 'type' => 'boolean'], 'b3' => ['optional' => true, 'type' => 'boolean'], 'b4' => ['optional' => true, 'type' => 'boolean'], 'b5' => ['optional' => true, 'type' => 'boolean'], 'b6' => ['optional' => true, 'type' => 'boolean']];
        $this->mockCommandManager->expects($this->once())->method('getCommandMethodParameters')->with('Acme\\Test\\Command\\DefaultCommandController', 'listCommand')->will($this->returnValue($methodParameters));
        $expectedArguments = ['b1' => true, 'b2' => true, 'b3' => true, 'b4' => false, 'b5' => false, 'b6' => false];
        $request = $this->requestBuilder->build('acme.test:default:list --b2 y --b1 1 --b3 true --b4 false --b5 n --b6 0');
        $this->assertEquals($expectedArguments, $request->getArguments());
    }