Pantheon\Terminus\UnitTests\Commands\Site\LookupCommandTest::testSiteLookupExists PHP Method

testSiteLookupExists() public method

Exercises site:lookup where the result is that the site exists and you have access to it
    public function testSiteLookupExists()
    {
        $site_name = 'my-site';
        $this->sites->method('findUuidByName')->with($this->equalTo($site_name))->willReturn(['name' => $site_name, 'id' => 'site_id']);
        $out = $this->command->lookup($site_name);
        $this->assertInstanceOf(PropertyList::class, $out);
    }