You are here

protected function RulesEngineTest::setUp in Rules 8.3

Overrides RulesKernelTestBase::setUp

File

tests/src/Kernel/RulesEngineTest.php, line 21

Class

RulesEngineTest
Test using the Rules API to create and evaluate rules.

Namespace

Drupal\Tests\rules\Kernel

Code

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

  // The global CurrentUserContext doesn't work properly without a
  // fully-installed user module.
  // @see https://www.drupal.org/project/rules/issues/2989417
  $this->container
    ->get('module_handler')
    ->loadInclude('user', 'install');
  user_install();
}