function SearchTestBase::setUp
Same name in this branch
- 8.9.x core/modules/search/src/Tests/SearchTestBase.php \Drupal\search\Tests\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\FunctionalCode
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.