function PathAliasExistsTest::setUp
Overrides RulesIntegrationTestBase::setUp
File
-
tests/
src/ Unit/ Integration/ Condition/ PathAliasExistsTest.php, line 37
Class
- PathAliasExistsTest
- @coversDefaultClass \Drupal\rules\Plugin\Condition\PathAliasExists @group RulesCondition
Namespace
Drupal\Tests\rules\Unit\Integration\ConditionCode
protected function setUp() : void {
parent::setUp();
// Must enable the path_alias module.
$this->enableModule('path_alias');
$this->aliasManager = $this->prophesize(AliasManagerInterface::class);
$this->container
->set('path_alias.manager', $this->aliasManager
->reveal());
$this->condition = $this->conditionManager
->createInstance('rules_path_alias_exists');
$this->englishLanguage = $this->prophesize(LanguageInterface::class);
$this->englishLanguage
->getId()
->willReturn('en');
}