Exemplo n.º 1
0
 /**
  * @Given /^I verify that the profile "([^"]*)" has a child site named "([^"]*)"$/
  */
 public function iVerifyTheProfileHasChildSite($profile_title, $child_site_title)
 {
     $child_site_nid = FeatureHelp::getEntityID('node', $child_site_title, 'personal');
     $child_site_from_profile = FeatureHelp::getChildSiteNid($profile_title);
     if (!$child_site_from_profile) {
         throw new Exception(sprintf('The profile %s has no child site.', $profile_title));
     } elseif ($child_site_from_profile != $child_site_nid) {
         throw new Exception(sprintf('The child site of the profile "%s" is not the site "%s".', $profile_title, $child_site_title));
     }
 }