protected function setUp() { parent::setUp(); $permissions = array('administer views', 'translate configuration'); // Create and log in user. $this->drupalLogin($this->drupalCreateUser($permissions)); }
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(); } }
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.'); }
/** * {@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')); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->drupalPlaceBlock('page_title_block'); ViewTestData::createTestViews(get_class($this), array('node_test_views')); }
protected function setUp() { parent::setUp(); $this->drupalPlaceBlock('page_title_block'); }
protected function setUp() { parent::setUp(); ViewTestData::createTestViews(get_class($this), ['views_field_view_test_config']); }
/** * @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'); }