src/DrupalExtension/Context/MenuContext.php
public function deleteMenuLinks(AfterScenarioScope $event) {
    if ($this->menuLinks) {
      foreach ($this->menuLinks as $menu_link) {
        $this->getCore()->entityDelete($menu_link);
      }

      $this->getCore()->clearMenuCache();
    }
  }
public function deleteMenuLinks(AfterScenarioScope $event) {
    if ($this->menuLinks) {
      foreach ($this->menuLinks as $menu_link) {
        $this->getCore()->entityDelete($menu_link);
      }

      $this->getCore()->clearMenuCache();
    }
  }
public function deleteMenuLinks ( AfterScenarioScope $ event ) { if ( $ this -> menuLinks ) { foreach ( $ this -> menuLinks as $ menu_link ) { $ this -> getCore ( ) -> entityDelete ( $ menu_link ) ; } $ this -> getCore ( ) -> clearMenuCache ( ) ; } }
Assert clean Watchdog after every step.

@param \Behat\Behat\Hook\Scope\AfterScenarioScope $event
Event object.

@AfterScenario
Assert clean Watchdog after every step .