You are here

protected function ApidocEntityTest::setUp in Apigee API Catalog 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/ApidocEntityTest.php \Drupal\Tests\apigee_api_catalog\Kernel\ApidocEntityTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/ApidocEntityTest.php, line 66

Class

ApidocEntityTest
Test basic CRUD operations for ApiDoc.

Namespace

Drupal\Tests\apigee_api_catalog\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('user', [
    'users_data',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('node_type');
  $this
    ->installEntitySchema('path_alias');
  $this
    ->installConfig(static::$modules);
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this->nodeStorage = $this->entityTypeManager
    ->getStorage('node');
}