function SearchTestBase::setUp

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

Overrides WebTestBase::setUp

File

core/modules/search/src/Tests/SearchTestBase.php, line 27

Class

SearchTestBase
Defines the common search test code.

Namespace

Drupal\search\Tests

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',
        ]);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.