ActionBase.php in User Merge 2.x
File
tests/src/Kernel/ActionBase.php
View source
<?php
namespace Drupal\Tests\usermerge\Kernel;
use Drupal\KernelTests\Core\Entity\EntityKernelTestBase;
abstract class ActionBase extends EntityKernelTestBase {
public $users = [];
public $currentUser;
public $userMergeActionManager;
public static $modules = [
'system',
'user',
'usermerge',
];
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();
$this->userMergeActionManager = $this->container
->get('plugin.manager.usermerge.action');
$this
->installSchema('user', [
'users_data',
]);
}
}