Exemplo n.º 1
0
 /**
  * Hide the boxes we added during the scenario.
  *
  * @AfterScenario
  */
 public function afterScenario($event)
 {
     if (!empty($this->box)) {
         // Loop over the box we collected in the scenario, hide them and delete
         // them.
         foreach ($this->box as $box_handler) {
             $data = explode(',', $box_handler);
             foreach ($data as &$value) {
                 $value = trim($value);
             }
             FeatureHelp::hideBox($this->nid, $data[0], $data[1], $data[2]);
         }
     }
     if (!empty($this->domains)) {
         // Remove domain we added to vsite.
         foreach ($this->domains as $domain) {
             FeatureHelp::RemoveVsiteDomain($domain);
         }
     }
 }