You are here

protected function SearchTestBase::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/search/src/Tests/SearchTestBase.php \Drupal\search\Tests\SearchTestBase::setUp()
  2. 8 core/modules/search/tests/src/Functional/SearchTestBase.php \Drupal\Tests\search\Functional\SearchTestBase::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/search/tests/src/Functional/SearchTestBase.php, line 26

Class

SearchTestBase
Defines the common search test code.

Namespace

Drupal\Tests\search\Functional

Code

protected function setUp() {
  parent::setUp();

  // Create Basic page and Article node types.
  if ($this->profile != 'standard') {
    $this
      ->drupalCreateContentType([
      'type' => 'page',
      'name' => 'Basic page',
    ]);
    $this
      ->drupalCreateContentType([
      'type' => 'article',
      'name' => 'Article',
    ]);
  }
}