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

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

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