Pantheon\Terminus\UnitTests\Commands\Upstream\Updates\ListCommandTest::testListUpstreamsEmpty PHP Method

testListUpstreamsEmpty() public method

Tests the upstream:updates:list command when there are no updates to apply
    public function testListUpstreamsEmpty()
    {
        $upstream = (object) ['remote_head' => '2f1c945d01cd03250e2b6668ad77bf24f54a5a56', 'ahead' => 1, 'update_log' => (object) []];
        $this->upstream->method('getUpdates')->willReturn($upstream);
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('warning'), $this->equalTo('There are no available updates for this site.'));
        $out = $this->command->listUpstreamUpdates('123');
        $this->assertEquals([], $out->getArrayCopy());
    }