You are here

public function ProtectionRuleBypassTest::testRoleDeleteProtectionBypass in User protect 8

Tests if bypassing role delete protection is respected.

File

tests/src/Kernel/ProtectionRuleBypassTest.php, line 60

Class

ProtectionRuleBypassTest
Tests bypassing protection rules.

Namespace

Drupal\Tests\userprotect\Kernel

Code

public function testRoleDeleteProtectionBypass() {
  $this
    ->doRoleProtectionBypassTest('user_delete', 'delete');
}