protected function UpdateCoreTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/update/src/Tests/UpdateCoreTest.php \Drupal\update\Tests\UpdateCoreTest::setUp()
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 UpdateTestBase::setUp
File
- core/
modules/ update/ src/ Tests/ UpdateCoreTest.php, line 27 - Contains \Drupal\update\Tests\UpdateCoreTest.
Class
- UpdateCoreTest
- Tests the Update Manager module through a series of functional tests using mock XML data.
Namespace
Drupal\update\TestsCode
protected function setUp() {
parent::setUp();
$admin_user = $this
->drupalCreateUser(array(
'administer site configuration',
'administer modules',
'administer themes',
));
$this
->drupalLogin($admin_user);
$this
->drupalPlaceBlock('local_actions_block');
}