You are here

protected function NodeTestBase::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/node/src/Tests/NodeTestBase.php \Drupal\node\Tests\NodeTestBase::setUp()
  2. 8 core/modules/node/tests/src/Functional/NodeTestBase.php \Drupal\Tests\node\Functional\NodeTestBase::setUp()
  3. 8 core/modules/node/src/Tests/Views/NodeTestBase.php \Drupal\node\Tests\Views\NodeTestBase::setUp()
  4. 8 core/modules/node/tests/src/Functional/Views/NodeTestBase.php \Drupal\Tests\node\Functional\Views\NodeTestBase::setUp()
Same name and namespace in other branches
  1. 9 core/modules/node/tests/src/Functional/Views/NodeTestBase.php \Drupal\Tests\node\Functional\Views\NodeTestBase::setUp()
  2. 10 core/modules/node/tests/src/Functional/Views/NodeTestBase.php \Drupal\Tests\node\Functional\Views\NodeTestBase::setUp()

Overrides ViewTestBase::setUp

7 calls to NodeTestBase::setUp()
BulkFormAccessTest::setUp in core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php
BulkFormTest::setUp in core/modules/node/tests/src/Functional/Views/BulkFormTest.php
FilterNodeAccessTest::setUp in core/modules/node/tests/src/Functional/Views/FilterNodeAccessTest.php
NodeFieldFilterTest::setUp in core/modules/node/tests/src/Functional/Views/NodeFieldFilterTest.php
NodeLanguageTest::setUp in core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php

... See full list

7 methods override NodeTestBase::setUp()
BulkFormAccessTest::setUp in core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php
BulkFormTest::setUp in core/modules/node/tests/src/Functional/Views/BulkFormTest.php
FilterNodeAccessTest::setUp in core/modules/node/tests/src/Functional/Views/FilterNodeAccessTest.php
NodeFieldFilterTest::setUp in core/modules/node/tests/src/Functional/Views/NodeFieldFilterTest.php
NodeLanguageTest::setUp in core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php

... See full list

File

core/modules/node/tests/src/Functional/Views/NodeTestBase.php, line 21

Class

NodeTestBase
Base class for all node Views tests.

Namespace

Drupal\Tests\node\Functional\Views

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp($import_test_views);
  if ($import_test_views) {
    ViewTestData::createTestViews(get_class($this), [
      'node_test_views',
    ]);
  }
}