You are here

protected function EntityQueryAlterCacheabilityTest::setUp in Group 2.0.x

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

Overrides GroupKernelTestBase::setUp

File

tests/src/Kernel/EntityQueryAlterCacheabilityTest.php, line 38

Class

EntityQueryAlterCacheabilityTest
Tests grouped entities query access cacheability.

Namespace

Drupal\Tests\group\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installEntitySchema('node');
  $this
    ->createNodeType([
    'type' => 'page',
  ]);
  $this->storage = $this->entityTypeManager
    ->getStorage('node');
  $this->groupType = $this
    ->createGroupType([
    'creator_membership' => FALSE,
  ]);
}