You are here

public function ProtectionRuleUnitTest::testGetProtection in User protect 8

Tests getProtection().

File

tests/src/Kernel/Entity/ProtectionRuleUnitTest.php, line 99

Class

ProtectionRuleUnitTest
Various unit tests for protection rules.

Namespace

Drupal\Tests\userprotect\Kernel\Entity

Code

public function testGetProtection() {
  $this
    ->assertInstanceOf(UserProtectionInterface::class, $this->protectionRule
    ->getProtection('user_mail'));
}