function RulesEngineTest::setUp
Overrides RulesKernelTestBase::setUp
File
-
tests/
src/ Kernel/ RulesEngineTest.php, line 23
Class
- RulesEngineTest
- Test using the Rules API to create and evaluate rules.
Namespace
Drupal\Tests\rules\KernelCode
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();
}