You are here

public function ActionBlockTest::testDeleteSelf in User Merge 2.x

Test deletion of logged in account.

Throws

\Drupal\usermerge\Exception\UserMergeException

File

tests/src/Kernel/ActionBlockTest.php, line 51

Class

ActionBlockTest
Class ActionBlockTest.

Namespace

Drupal\Tests\usermerge\Kernel

Code

public function testDeleteSelf() {
  $this
    ->setExpectedException(UserMergeException::class, 'You can not retire self.');
  $this->action
    ->process($this->currentUser, $this->users['user2']);
}