You are here

protected function HandlerTest::setUp in Drupal 10

Same name in this branch
  1. 10 core/modules/views_ui/tests/src/Functional/HandlerTest.php \Drupal\Tests\views_ui\Functional\HandlerTest::setUp()
  2. 10 core/modules/views/tests/src/Functional/Handler/HandlerTest.php \Drupal\Tests\views\Functional\Handler\HandlerTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/Handler/HandlerTest.php \Drupal\Tests\views\Functional\Handler\HandlerTest::setUp()
  2. 9 core/modules/views/tests/src/Functional/Handler/HandlerTest.php \Drupal\Tests\views\Functional\Handler\HandlerTest::setUp()

File

core/modules/views/tests/src/Functional/Handler/HandlerTest.php, line 42

Class

HandlerTest
Tests abstract handler definitions.

Namespace

Drupal\Tests\views\Functional\Handler

Code

protected function setUp($import_test_views = TRUE, $modules = [
  'views_test_config',
]) : void {
  parent::setUp($import_test_views, $modules);
  $this
    ->drupalCreateContentType([
    'type' => 'page',
  ]);
  $this
    ->addDefaultCommentField('node', 'page');
  $this
    ->enableViewsTestModule();
}