/**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->drupalLogin($this->adminUser);
     $this->setUpExampleStructure();
     $this->insertExampleContent();
     $this->assertEqual($this->indexItems($this->indexId), 5, '5 items were indexed.');
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     // Make sure we're logged in with a user that has sufficient permissions.
     $this->drupalLogin($this->adminUser);
     // Go to the overview and click the first configure link.
     $this->drupalGet('admin/config/search/facets');
     $this->assertLink($this->t('Configure'));
     $this->clickLink($this->t('Configure'));
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->drupalLogin($this->adminUser);
     // Set up example content types and insert 10 new content items.
     $this->setUpExampleStructure();
     $this->insertExampleContent();
     $this->assertEqual($this->indexItems($this->indexId), 5, '5 items were indexed.');
     $this->insertExampleContent();
     $this->assertEqual($this->indexItems($this->indexId), 5, '5 items were indexed.');
 }
Exemple #4
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     // Create some nodes.
     $this->drupalCreateNode(array('type' => 'page', 'title' => 'node - 1'));
     $this->drupalCreateNode(array('type' => 'page', 'title' => 'node - 2'));
     $this->drupalCreateNode(array('type' => 'page', 'title' => 'node - 3'));
     $this->drupalCreateNode(array('type' => 'page', 'title' => 'node - 4'));
     // Do not use a batch for tracking the initial items after creating an
     // index when running the tests via the GUI. Otherwise, it seems Drupal's
     // Batch API gets confused and the test fails.
     \Drupal::state()->set('search_api_use_tracking_batch', FALSE);
     // Create an index and server to work with.
     $this->getTestServer();
     $this->getTestIndex();
     // Log in, so we can test all the things.
     $this->drupalLogin($this->adminUser);
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->setUpExampleStructure();
 }