/** * {@inheritdoc} */ public function setUp() { parent::setUp(); $this->entityManager = $this->container->get('entity.manager'); $this->storage = $this->entityManager->getStorage('rules_component'); $this->installConfig(['rules_test_default_component']); }
/** * {@inheritdoc} */ public function setUp() { parent::setUp(); $this->installConfig(['system']); $this->installConfig(['field']); $this->installConfig(['node']); $this->installSchema('system', ['router', 'sequences']); $this->installEntitySchema('user'); $this->installEntitySchema('node'); // Make sure that the node routes get picked when used during rendering. $this->container->get('router.builder')->rebuild(); }
/** * {@inheritdoc} */ public function setUp() { parent::setUp(); $this->installConfig(['system']); $this->installConfig(['field']); $this->installConfig(['node']); $this->installSchema('system', ['sequences']); // Drupal 8.0.x needs the router table installed which is done automatically // in Drupal 8.1.x. Remove this once Drupal 8.0.x is unsupported. if (!empty(drupal_get_module_schema('system', 'router'))) { $this->installSchema('system', ['router']); } $this->installEntitySchema('user'); $this->installEntitySchema('node'); // Make sure that the node routes get picked when used during rendering. $this->container->get('router.builder')->rebuild(); }
/** * {@inheritdoc} */ public function setUp() { parent::setUp(); $this->storage = $this->container->get('entity.manager')->getStorage('rules_reaction_rule'); }