You are here

protected function EntityLookupAccessTest::setUp in Migrate Plus 8.5

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EntityLookupAccessTest.php, line 53

Class

EntityLookupAccessTest
Tests entity lookup access check.

Namespace

Drupal\Tests\migrate_plus\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this
    ->installEntitySchema('entity_test');
  $this
    ->installEntitySchema('user');
  $this
    ->installConfig('user');
  $this->user = $this
    ->createUser([
    'view all entity_test_query_access entities',
  ]);
  $this->entity = EntityTest::create([
    'name' => $this
      ->randomMachineName(8),
  ]);
}