You are here

protected function AnnotationProcessingTest::setUp in Rules 8.3

Overrides RulesIntegrationTestBase::setUp

File

tests/src/Unit/Integration/Engine/AnnotationProcessingTest.php, line 19

Class

AnnotationProcessingTest
Tests processing of the ContextDefinition annotation.

Namespace

Drupal\Tests\rules\Unit\Integration\Engine

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->enableModule('user');

  // Some of our plugins assume sessions exist:
  $session_manager = $this
    ->prophesize(SessionManagerInterface::class);
  $this->container
    ->set('session_manager', $session_manager
    ->reveal());
}