Pantheon\Terminus\UnitTests\Commands\Site\LookupCommandTest::testSiteLooupDoesNotExist PHP Метод

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

Exercises site:lookup where the result is that the site does not exist
    public function testSiteLooupDoesNotExist()
    {
        $site_name = 'my-site';
        $this->sites->method('findUuidByName')->with($this->equalTo($site_name))->will($this->throwException(new \Exception("A site named {$site_name} was not found.")));
        $out = $this->command->lookup($site_name);
        $this->assertInstanceOf(PropertyList::class, $out);
    }