/** * {@inheritdoc} */ public function setUp() { parent::setUp(); $this->logger = $this->container->get('logger.channel.rules'); // Clear the log from any stale entries that are bleeding over from previous // tests. $this->logger->clearLogs(); $this->expressionManager = $this->container->get('plugin.manager.rules_expression'); $this->conditionManager = $this->container->get('plugin.manager.condition'); $this->typedDataManager = $this->container->get('typed_data_manager'); }
/** * {@inheritdoc} */ public function setUp() { // @todo Extra hack to avoid test fails, remove this once // https://www.drupal.org/node/2553661 is fixed. FileCacheFactory::setPrefix(Settings::getApcuPrefix('file_cache', $this->root)); parent::setUp(); $this->logger = $this->container->get('logger.channel.rules'); // Clear the log from any stale entries that are bleeding over from previous // tests. $this->logger->clearLogs(); $this->expressionManager = $this->container->get('plugin.manager.rules_expression'); $this->conditionManager = $this->container->get('plugin.manager.condition'); $this->typedDataManager = $this->container->get('typed_data_manager'); }