Kraken\_Unit\Console\Client\Command\Project\ProjectDestroyCommandTest::testApiCommand_ReturnsCommandData PHP Method

testApiCommand_ReturnsCommandData() public method

    public function testApiCommand_ReturnsCommandData()
    {
        $command = $this->createCommand(['informServer', 'validateDestroyFlags']);
        $command->expects($this->once())->method('validateDestroyFlags')->will($this->returnArgument(0));
        $command->expects($this->once())->method('informServer')->with(null, 'project:destroy', ['flags' => 'flags']);
        $input = $this->createInputMock();
        $output = $this->createOutputMock();
        $this->callProtectedMethod($command, 'command', [$input, $output]);
    }