You are here

public function ActionDeleteTest::testProcess in User Merge 2.x

Check if user was deleted.

Throws

\Drupal\usermerge\Exception\UserMergeException

File

tests/src/Kernel/ActionDeleteTest.php, line 61

Class

ActionDeleteTest
Class ActionDeleteTest.

Namespace

Drupal\Tests\usermerge\Kernel

Code

public function testProcess() {
  $retired_id = $this->users['user3']
    ->id();
  $retained_id = $this->users['user4']
    ->id();
  $this->action
    ->process($this->users['user3'], $this->users['user4']);
  $this
    ->assertNull(User::load($retired_id));
  $this
    ->assertInstanceOf(User::class, User::load($retained_id));
}