protected function PathAliasDeleteByAliasTest::setUp in Rules 8.3
Overrides RulesIntegrationTestBase::setUp
File
- tests/
src/ Unit/ Integration/ RulesAction/ PathAliasDeleteByAliasTest.php, line 32
Class
- PathAliasDeleteByAliasTest
- @coversDefaultClass \Drupal\rules\Plugin\RulesAction\PathAliasDeleteByAlias @group RulesAction
Namespace
Drupal\Tests\rules\Unit\Integration\RulesActionCode
protected function setUp() : void {
parent::setUp();
// Must enable the path_alias module.
$this
->enableModule('path_alias');
// Prepare mocked EntityStorageInterface.
$this->aliasStorage = $this
->prophesize(EntityStorageInterface::class);
$this->entityTypeManager
->getStorage('path_alias')
->willReturn($this->aliasStorage
->reveal());
$this->action = $this->actionManager
->createInstance('rules_path_alias_delete_by_alias');
}