Pantheon\Terminus\UnitTests\Commands\Workflow\Info\LogsCommandTest::testWorkflowIDLogsCommand PHP Метод

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

Tests the workflow:info:logs command with workflow ID
    public function testWorkflowIDLogsCommand()
    {
        $this->workflows->expects($this->once())->method('fetch')->willReturn($this->workflows);
        $this->workflows->expects($this->once())->method('get')->with($this->equalTo('12345'))->willReturn($this->workflow);
        $this->workflow->expects($this->once())->method('operations')->willReturn([$this->operation, $this->operation]);
        $out = $this->command->logs('mysite', ['id' => '12345']);
        $this->assertEquals($out, $this->expected_logs);
    }