public function ActionBlockTest::testAlreadyBlocked in User Merge 2.x
Test scenario if retired account is already blocked.
Throws
\Drupal\Core\Entity\EntityStorageException
\Drupal\usermerge\Exception\UserMergeException
File
- tests/
src/ Kernel/ ActionBlockTest.php, line 62
Class
- ActionBlockTest
- Class ActionBlockTest.
Namespace
Drupal\Tests\usermerge\KernelCode
public function testAlreadyBlocked() {
$user2 = $this->users['user2'];
$user2
->block();
$user2
->save();
$this
->setExpectedException(UserMergeException::class, 'The retire user is already blocked.');
$this->action
->process($this->users['user2'], $this->users['user2']);
}