You are here

protected function UserHasRoleTest::setUp in Rules 8.3

Overrides RulesEntityIntegrationTestBase::setUp

File

tests/src/Unit/Integration/Condition/UserHasRoleTest.php, line 26

Class

UserHasRoleTest
@coversDefaultClass \Drupal\rules\Plugin\Condition\UserHasRole @group RulesCondition

Namespace

Drupal\Tests\rules\Unit\Integration\Condition

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->enableModule('user');
  $this->condition = $this->conditionManager
    ->createInstance('rules_user_has_role');
}