Pantheon\Terminus\UnitTests\Commands\Upstream\InfoCommandTest::testInfo PHP Метод

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

Tests the upstream:info command
public testInfo ( )
    public function testInfo()
    {
        $upstream_id = 'upstream_id';
        $this->upstreams->expects($this->once())->method('get')->with($this->equalTo($upstream_id))->willReturn($this->upstream);
        $out = $this->command->info($upstream_id);
        $this->assertInstanceOf(PropertyList::class, $out);
        $this->assertEquals($this->data, $out->getArrayCopy());
    }
InfoCommandTest