protected function setUp()
 {
     parent::setUp();
     if (!$this->getDrupalContainer()->has('twig')) {
         $this->markTestSkipped("Incomplete environment");
     }
     $this->markTestSkipped("This needs rewrite");
 }
 protected function setUp()
 {
     parent::setUp();
     $this->getDrupalContainer();
     // Force full bootstrap
     if (!getenv('FORCE_TESTS') && module_exists('pathauto')) {
         $this->markTestSkipped("Some modules are stupid, we cannot test under those conditions");
     }
 }
 public function setUp()
 {
     parent::setUp();
     if (!module_exists('sf_entity_event')) {
         $this->markTestSkipped("You must enable the sf_entity_event module to run this test");
     }
     // forces bootstrap
     $this->getDrupalContainer();
 }
 protected function tearDown()
 {
     if ($this->menus) {
         foreach ($this->menus as $name) {
             $this->getDatabaseConnection()->query("DELETE FROM {umenu} WHERE name = ?", [$name]);
         }
     }
     $this->getDatabaseConnection()->query("DELETE FROM {menu_links} WHERE menu_name NOT IN (SELECT name FROM {umenu})");
     $this->eraseAllData();
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     if (!$this->moduleExists('sf_acl')) {
         $this->markTestSkipped("You must enable the sf_acl module to run this test");
     }
     if (!interface_exists('\\Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface')) {
         $this->markTestSkipped("You must have downloaded the symfony/security component to run this test");
     }
     // forces bootstrap
     $this->getDrupalContainer();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->getDrupalContainer();
     // Enfore full bootstrap
     $this->aliasStorage = $this->createAliasStorage();
     $this->aliasStorage->save('duplicate-langcode', 'alias-fr', 'fr');
     $this->aliasStorage->save('duplicate-langcode', 'alias-en', 'en');
     $this->aliasStorage->save('duplicate-langcode', 'alias-und', LanguageInterface::LANGCODE_NOT_SPECIFIED);
     $this->aliasStorage->save('duplicate-alias-1', 'duplicate-alias', LanguageInterface::LANGCODE_NOT_SPECIFIED);
     $this->aliasStorage->save('duplicate-alias-2', 'duplicate-alias', LanguageInterface::LANGCODE_NOT_SPECIFIED);
     $this->aliasStorage->save('normal-source', 'normal-alias', LanguageInterface::LANGCODE_NOT_SPECIFIED);
     $this->aliasManager = new AliasManager($this->aliasStorage);
     $GLOBALS['language'] = new Language();
 }
 protected function setUp()
 {
     // We need to bootstrap at least Drupal configuration so that
     // variable_get() is defined
     parent::setUp();
     $this->getDrupalContainer();
     if (!defined('LANGUAGE_NONE')) {
         define('LANGUAGE_NONE', 'und');
     }
     if (!defined('LANGUAGE_NEGOTIATION_DEFAULT')) {
         define('LANGUAGE_NEGOTIATION_DEFAULT', 'language-default');
     }
     // Avoid variable_get() and variable_set() calls
     $GLOBALS['conf']['path_alias_whitelist'] = false;
     $this->aliasStorage = new ArrayAliasStorage();
     $this->aliasStorage->save('duplicate-langcode', 'alias-fr', 'fr');
     $this->aliasStorage->save('duplicate-langcode', 'alias-en', 'en');
     $this->aliasStorage->save('duplicate-langcode', 'alias-und', LanguageInterface::LANGCODE_NOT_SPECIFIED);
     $this->aliasStorage->save('duplicate-alias-1', 'duplicate-alias', LanguageInterface::LANGCODE_NOT_SPECIFIED);
     $this->aliasStorage->save('duplicate-alias-2', 'duplicate-alias', LanguageInterface::LANGCODE_NOT_SPECIFIED);
     $this->aliasStorage->save('normal-source', 'normal-alias', LanguageInterface::LANGCODE_NOT_SPECIFIED);
     $this->aliasManager = new AliasManager($this->aliasStorage);
     $GLOBALS['language'] = new Language();
 }
 protected function setUp()
 {
     parent::setUp();
     $GLOBALS['conf']['language_default'] = (object) ['language' => 'en', 'name' => 'English', 'native' => 'English', 'direction' => 0, 'enabled' => 1, 'plurals' => 0, 'formula' => '', 'domain' => '', 'prefix' => '', 'weight' => 0, 'javascript' => ''];
 }
 protected function tearDown()
 {
     $this->getDatabaseConnection()->query("DELETE FROM {umenu} WHERE name IN ('foo', 'bar', 'a', 'b', 'c', 'd', 'e', 'f')");
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->eraseAllData();
     $this->getMenuStorage()->delete($this->menuName);
     parent::tearDown();
 }