You are here

protected function AnonymousUserTest::setUp in Acquia Content Hub 8.2

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/EventSubscriber/EntityDataTamper/AnonymousUserTest.php, line 54

Class

AnonymousUserTest
Tests Anonymous user attribute.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\EntityDataTamper

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('node_type');
  $this
    ->installConfig([
    'node',
    'filter',
  ]);
  $this
    ->installEntitySchema('field_config');
  $this
    ->installSchema('node', 'node_access');
  $this
    ->installSchema('user', 'users_data');
  $this
    ->installEntitySchema('path_alias');
  $this
    ->createContentType([
    'type' => 'page',
    'name' => 'Page',
  ])
    ->save();
  $this->entityDataTamper = new AnonymousUser();
}