You are here

protected function ActionBase::setUp in User Merge 2.x

Throws

\Drupal\Core\Entity\EntityStorageException

Overrides EntityKernelTestBase::setUp

2 calls to ActionBase::setUp()
ActionBlockTest::setUp in tests/src/Kernel/ActionBlockTest.php
ActionDeleteTest::setUp in tests/src/Kernel/ActionDeleteTest.php
2 methods override ActionBase::setUp()
ActionBlockTest::setUp in tests/src/Kernel/ActionBlockTest.php
ActionDeleteTest::setUp in tests/src/Kernel/ActionDeleteTest.php

File

tests/src/Kernel/ActionBase.php, line 49

Class

ActionBase
Class ActionBase.

Namespace

Drupal\Tests\usermerge\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->users['user1'] = $this
    ->drupalCreateUser();
  $this->users['user2'] = $this
    ->drupalCreateUser();
  $this->users['user3'] = $this
    ->drupalCreateUser();
  $this->users['user4'] = $this
    ->drupalCreateUser();
  $this->currentUser = $this
    ->drupalSetUpCurrentUser();

  /** @var \Drupal\usermerge\Plugin\UserMergeActionPluginManager $user_merge_action */
  $this->userMergeActionManager = $this->container
    ->get('plugin.manager.usermerge.action');

  // Add the additional table schemas.
  $this
    ->installSchema('user', [
    'users_data',
  ]);
}