Kraken\_Unit\Runtime\Command\Cmd\CmdErrorCommandTest::testApiCommand_InvokesProperAction PHP Метод

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

    public function testApiCommand_InvokesProperAction()
    {
        $exception = 'Exception';
        $message = 'reason';
        $origin = 'origin';
        $hash = 'hash';
        $command = $this->createCommand();
        $manager = $this->createSupervisor();
        $manager->expects($this->atLeastOnce())->method('solve')->with($this->isInstanceOf(Exception::class), ['origin' => $origin, 'hash' => $hash])->will($this->returnValue(null));
        $this->assertSame(null, $this->callProtectedMethod($command, 'command', [['exception' => $exception, 'message' => $message, 'origin' => $origin, 'hash' => $hash]]));
    }