Pantheon\Terminus\UnitTests\Commands\Workflow\Info\StatusCommandTest::testWorkflowIDStatusCommand PHP Method

testWorkflowIDStatusCommand() public method

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