Kraken\_Unit\Runtime\Command\Processes\ProcessesCreateCommandTest::testApiCommand_InvokesProperAction PHP Метод

testApiCommand_InvokesProperAction() публичный Метод

    public function testApiCommand_InvokesProperAction()
    {
        $defs = ['alias1' => 'name1', 'alias2' => 'name2'];
        $flags = 0;
        $result = new StdClass();
        $command = $this->createCommand();
        $manager = $this->createManager();
        $manager->expects($this->once())->method('createProcesses')->with($defs, $flags)->will($this->returnValue($result));
        $this->assertSame($result, $this->callProtectedMethod($command, 'command', [['definitions' => $defs, 'flags' => $flags]]));
    }