コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->installSchema('system', ['sequences']);
     $this->installEntitySchema('user');
     $this->installEntitySchema('node');
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->rulesUiManager = $this->container->get('plugin.manager.rules_ui');
     $this->installConfig(['system']);
     $this->installConfig(['rules_test_ui_embed']);
     $this->installSchema('system', ['sequences']);
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     // 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->container->get('router.builder')->rebuild();
     }
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->installSchema('system', ['sequences']);
     $this->installEntitySchema('user');
     $this->installEntitySchema('node');
     $this->installConfig(['field']);
     $entity_type_manager = $this->container->get('entity_type.manager');
     $entity_type_manager->getStorage('node_type')->create(['type' => 'page'])->save();
     FieldStorageConfig::create(['field_name' => 'field_text', 'type' => 'string', 'entity_type' => 'node', 'cardinality' => 1])->save();
     FieldConfig::create(['field_name' => 'field_text', 'entity_type' => 'node', 'bundle' => 'page'])->save();
 }
コード例 #5
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->installSchema('system', ['sequences']);
     $this->installEntitySchema('user');
     $this->installEntitySchema('node');
     $this->installConfig(['field']);
     $this->storage = $this->container->get('entity_type.manager')->getStorage('rules_reaction_rule');
     $entity_type_manager = $this->container->get('entity_type.manager');
     $entity_type_manager->getStorage('node_type')->create(['type' => 'page'])->save();
     FieldStorageConfig::create(['field_name' => 'field_integer', 'type' => 'integer', 'entity_type' => 'node', 'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED])->save();
     FieldConfig::create(['field_name' => 'field_integer', 'entity_type' => 'node', 'bundle' => 'page'])->save();
     $this->node = $entity_type_manager->getStorage('node')->create(['title' => 'test', 'type' => 'page']);
 }
コード例 #6
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->storage = $this->container->get('entity_type.manager')->getStorage('rules_component');
 }
コード例 #7
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->installSchema('system', ['router', 'url_alias']);
     $this->container->get('router.builder')->rebuild();
 }
コード例 #8
0
ファイル: RulesEngineTest.php プロジェクト: DrupalTV/DrupalTV
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->installEntitySchema('user');
 }