Pantheon\Terminus\UnitTests\Commands\Workflow\Info\OperationsCommandTest::testWorkflowIDOperationsCommand PHP Method

testWorkflowIDOperationsCommand() public method

Tests the workflow:info:operations command with workflow ID
    public function testWorkflowIDOperationsCommand()
    {
        $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]);
        $out = $this->command->operations('mysite', ['id' => '12345']);
        $this->assertInstanceOf(RowsOfFields::class, $out);
    }