You are here

function AdminMenuTestBase::setUp in Administration menu 8.3

Sets up a Drupal site for running functional and integration tests.

Installs Drupal with the installation profile specified in \Drupal\simpletest\WebTestBase::$profile into the prefixed database.

Afterwards, installs any additional modules specified in the static \Drupal\simpletest\WebTestBase::$modules property of each class in the class hierarchy.

After installation all caches are flushed and several configuration values are reset to the values of the parent site executing the test, since the default values may be incompatible with the environment in which tests are being executed.

Overrides WebTestBase::setUp

2 calls to AdminMenuTestBase::setUp()
AdminMenuCustomizedTest::setUp in lib/Drupal/admin_menu/Tests/AdminMenuCustomizedTest.php
Sets up a Drupal site for running functional and integration tests.
AdminMenuLinkTypesTest::setUp in lib/Drupal/admin_menu/Tests/AdminMenuLinkTypesTest.php
Sets up a Drupal site for running functional and integration tests.
2 methods override AdminMenuTestBase::setUp()
AdminMenuCustomizedTest::setUp in lib/Drupal/admin_menu/Tests/AdminMenuCustomizedTest.php
Sets up a Drupal site for running functional and integration tests.
AdminMenuLinkTypesTest::setUp in lib/Drupal/admin_menu/Tests/AdminMenuLinkTypesTest.php
Sets up a Drupal site for running functional and integration tests.

File

lib/Drupal/admin_menu/Tests/AdminMenuTestBase.php, line 19

Class

AdminMenuTestBase
Base class for all administration menu web test cases.

Namespace

Drupal\admin_menu\Tests

Code

function setUp() {
  parent::setUp();

  // @todo Core: Missing uid on $this->root_user.
  // @see http://drupal.org/node/1899862
  $this->root_user->uid = 1;

  // Disable client-side caching.
  variable_set('admin_menu_cache_client', FALSE);
}