protected function LinkitTestBase::setUp in Linkit 8.4
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
7 calls to LinkitTestBase::setUp()
- AttributeCrudTest::setUp in src/
Tests/ AttributeCrudTest.php - Sets up a Drupal site for running functional and integration tests.
- LinkitControllerTest::setUp in src/
Tests/ Controllers/ LinkitControllerTest.php - Sets up a Drupal site for running functional and integration tests.
- MatcherCrudTest::setUp in src/
Tests/ MatcherCrudTest.php - Sets up a Drupal site for running functional and integration tests.
- NodeMatcherTest::setUp in src/
Tests/ Matchers/ NodeMatcherTest.php - Sets up a Drupal site for running functional and integration tests.
- ProfileCrudTest::setUp in src/
Tests/ ProfileCrudTest.php - Sets up a Drupal site for running functional and integration tests.
7 methods override LinkitTestBase::setUp()
- AttributeCrudTest::setUp in src/
Tests/ AttributeCrudTest.php - Sets up a Drupal site for running functional and integration tests.
- LinkitControllerTest::setUp in src/
Tests/ Controllers/ LinkitControllerTest.php - Sets up a Drupal site for running functional and integration tests.
- MatcherCrudTest::setUp in src/
Tests/ MatcherCrudTest.php - Sets up a Drupal site for running functional and integration tests.
- NodeMatcherTest::setUp in src/
Tests/ Matchers/ NodeMatcherTest.php - Sets up a Drupal site for running functional and integration tests.
- ProfileCrudTest::setUp in src/
Tests/ ProfileCrudTest.php - Sets up a Drupal site for running functional and integration tests.
File
- src/
Tests/ LinkitTestBase.php, line 45 - Contains \Drupal\linkit\Tests\LinkitTestBase.
Class
- LinkitTestBase
- Sets up page and article content types.
Namespace
Drupal\linkit\TestsCode
protected function setUp() {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'administer linkit profiles',
]);
$this->baseUser = $this
->drupalCreateUser();
$this
->drupalPlaceBlock('page_title_block', [
'region' => 'content',
]);
$this
->drupalPlaceBlock('local_tasks_block', [
'region' => 'content',
]);
$this
->drupalPlaceBlock('local_actions_block', [
'region' => 'content',
]);
$this
->drupalPlaceBlock('system_messages_block', [
'region' => 'highlighted',
]);
}