protected function setUp()
 {
     parent::setUp();
     $permissions = array('administer views', 'translate configuration');
     // Create and log in user.
     $this->drupalLogin($this->drupalCreateUser($permissions));
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     parent::setUp();
     $this->drupalCreateContentType(array('type' => 'article'));
     $this->drupalCreateContentType(array('type' => 'page'));
     // Create some random nodes.
     for ($i = 0; $i < 5; $i++) {
         $this->drupalCreateNode();
     }
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     parent::setUp();
     $this->drupalCreateContentType(array('type' => 'article'));
     $this->drupalCreateContentType(array('type' => 'page'));
     // Create some random nodes.
     for ($i = 0; $i < 5; $i++) {
         $this->drupalCreateNode();
     }
     // Error strings used in the grouped filter form validation.
     $this->groupFormUiErrors['missing_value'] = t('A value is required if the label for this item is defined.');
     $this->groupFormUiErrors['missing_title'] = t('A label is required if the value for this item is defined.');
     $this->groupFormUiErrors['missing_title_empty_operator'] = t('A label is required for the specified operator.');
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     Vocabulary::create(['vid' => 'tags', 'name' => 'Tags'])->save();
     // Setup a hierarchy which looks like this:
     // term 0.0
     // term 1.0
     // - term 1.1
     // term 2.0
     // - term 2.1
     // - term 2.2
     for ($i = 0; $i < 3; $i++) {
         for ($j = 0; $j <= $i; $j++) {
             $this->terms[$i][$j] = $term = Term::create(['vid' => 'tags', 'name' => "Term {$i}.{$j}", 'parent' => isset($terms[$i][0]) ? $terms[$i][0]->id() : 0]);
             $term->save();
         }
     }
     ViewTestData::createTestViews(get_class($this), array('taxonomy_test_views'));
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     ViewTestData::createTestViews(get_class($this), array('taxonomy_test_views'));
 }
Exemplo n.º 6
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->drupalPlaceBlock('page_title_block');
     ViewTestData::createTestViews(get_class($this), array('node_test_views'));
 }
Exemplo n.º 7
0
 protected function setUp()
 {
     parent::setUp();
     $this->drupalPlaceBlock('page_title_block');
 }
Exemplo n.º 8
0
 protected function setUp()
 {
     parent::setUp();
     ViewTestData::createTestViews(get_class($this), ['views_field_view_test_config']);
 }
Exemplo n.º 9
0
 /**
  * @inheritdoc
  */
 protected function setUp()
 {
     parent::setUp();
     ViewTestData::createTestViews(get_class($this), array('ctools_views_test_views'));
     $this->storage = $this->container->get('entity.manager')->getStorage('block');
 }