public function ActionDeleteTest::testDeleteSelf in User Merge 2.x
Test deletion of logged in account.
Throws
\Drupal\usermerge\Exception\UserMergeException
File
- tests/
src/ Kernel/ ActionDeleteTest.php, line 51
Class
- ActionDeleteTest
- Class ActionDeleteTest.
Namespace
Drupal\Tests\usermerge\KernelCode
public function testDeleteSelf() {
$this
->setExpectedException(UserMergeException::class, 'You can not retire self.');
$this->action
->process($this->currentUser, $this->users['user2']);
}