function UserBlockTest::setUp

Overrides RulesEntityIntegrationTestBase::setUp

File

tests/src/Unit/Integration/RulesAction/UserBlockTest.php, line 52

Class

UserBlockTest
@coversDefaultClass \Drupal\rules\Plugin\RulesAction\UserBlock @group RulesAction

Namespace

Drupal\Tests\rules\Unit\Integration\RulesAction

Code

protected function setUp() : void {
    parent::setUp();
    $this->enableModule('user');
    $this->sessionManager = $this->prophesize(SessionManagerInterface::class);
    $this->container
        ->set('session_manager', $this->sessionManager
        ->reveal());
    $this->action = $this->actionManager
        ->createInstance('rules_user_block');
}