You are here

protected function RabbitHoleBehaviorPluginTest::setUp in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/RabbitHoleBehaviorPluginTest.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorPluginTest::setUp()

Overrides ViewTestBase::setUp

File

tests/src/Functional/RabbitHoleBehaviorPluginTest.php, line 54

Class

RabbitHoleBehaviorPluginTest
Test the functionality of the RabbitHoleBehavior plugin.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp(FALSE);
  $this->manager = $this->container
    ->get('plugin.manager.rabbit_hole_behavior_plugin');

  // Create a content type and entity to test with.
  $this
    ->createTestContentType();
  $this->entity = $this
    ->createTestEntity();
}