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

aSiteNamedBelongingTo() public method

Ensures a site of the given name exists and belongs to given org
public aSiteNamedBelongingTo ( [string] $site, [string] $org ) : [boolean]
$site [string]
$org [string]
return [boolean]
    public function aSiteNamedBelongingTo($site, $org)
    {
        $output = $this->iGetInfoForTheSite($site);
        if (!$this->checkResult($site, $output)) {
            $this->iCreateSiteNamed('Drupal 7', $site, $org);
            $recurse = $this->aSiteNamedBelongingTo($site, $org);
            return $recurse;
        }
        return true;
    }