Pantheon\Terminus\FeatureTests\FeatureContext::aSiteNamed PHP Method

aSiteNamed() public method

Ensures a site of the given name exists
public aSiteNamed ( string $site ) : boolean
$site string Name of site to ensure exists
return boolean Always true, else errs
    public function aSiteNamed($site)
    {
        try {
            $this->iRun("terminus site:lookup {$site}");
        } catch (TerminusException $e) {
            throw new \Exception("Your user does not have a site named {$site}.");
        }
        return true;
    }