/** * {@inheritdoc} */ public function setUp() { parent::setUp(); $this->aliasStorage = $this->prophesize(AliasStorageInterface::class); $this->container->set('path.alias_storage', $this->aliasStorage->reveal()); $this->action = $this->actionManager->createInstance('rules_path_alias_delete_by_alias'); }
/** * {@inheritdoc} */ public function setUp() { parent::setUp(); // Prepare mocked AliasStorageInterface. $this->aliasStorage = $this->prophesize(AliasStorageInterface::class); $this->container->set('path.alias_storage', $this->aliasStorage->reveal()); // Instantiate the action we are testing. $this->action = $this->actionManager->createInstance('rules_entity_path_alias_create:entity:test'); }