Pantheon\Terminus\UnitTests\Commands\Workflow\Info\StatusCommandTest::testLatestStatusCommand PHP Метод

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

Tests the workflow:info:status command with the latest workflow
    public function testLatestStatusCommand()
    {
        $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('serialize')->willReturn(['id' => '12345', 'details' => 'test']);
        $out = $this->command->status('mysite', ['id' => null]);
        $this->assertInstanceOf(PropertyList::class, $out);
    }