function SearchNodeTranslationUITest::setUp
Same name and namespace in other branches
- main core/modules/search/tests/src/Functional/SearchNodeTranslationUITest.php \Drupal\Tests\search\Functional\SearchNodeTranslationUITest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ search/ tests/ src/ Functional/ SearchNodeTranslationUITest.php, line 38
Class
- SearchNodeTranslationUITest
- Tests search index rebuild on translated content deletion.
Namespace
Drupal\Tests\search\FunctionalCode
protected function setUp() : void {
$this->entityTypeId = 'node';
$this->bundle = 'article';
parent::setUp();
// Create the bundle.
$this->drupalCreateContentType([
'type' => 'article',
'title' => 'Article',
]);
$this->doSetup();
$this->drupalLogin($this->translator);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.