Pantheon\Terminus\UnitTests\Commands\Tag\ListCommandTest::testListTagsWhenEmpty PHP Метод

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

Tests the tag:list command when there are no tags to display
    public function testListTagsWhenEmpty()
    {
        $org = 'org';
        $tags = [];
        $this->tags->expects($this->once())->method('ids')->with()->willReturn($tags);
        $this->organization->expects($this->once())->method('get')->with($this->equalTo('profile'))->willReturn((object) ['name' => $org]);
        $this->site->expects($this->once())->method('get')->with($this->equalTo('name'))->willReturn($this->site->id);
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo('{org} does not have any tags for {site}.'), $this->equalTo(['site' => $this->site->id, 'org' => $org]));
        $out = $this->command->listTags($this->site->id, $this->organization->id);
        $this->assertInstanceOf(PropertyList::class, $out);
        $this->assertEquals($out->getArrayCopy(), $tags);
    }