Pantheon\Terminus\UnitTests\Commands\Upstream\ListCommandTest::testListUpstreams PHP Метод

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

Tests the upstream:list command
public testListUpstreams ( )
    public function testListUpstreams()
    {
        $this->upstreams->expects($this->once())->method('all')->with()->willReturn([$this->upstream]);
        $out = $this->command->listUpstreams();
        $this->assertInstanceOf(RowsOfFields::class, $out);
        $this->assertEquals([$this->data], $out->getArrayCopy());
    }