function SearchNodeUpdateAndDeletionTest::setUp
Overrides BrowserTestBase::setUp
File
- 
              core/
modules/ search/ tests/ src/ Functional/ SearchNodeUpdateAndDeletionTest.php, line 38  
Class
- SearchNodeUpdateAndDeletionTest
 - Tests search index is updated properly when nodes are removed or updated.
 
Namespace
Drupal\Tests\search\FunctionalCode
protected function setUp() : void {
  parent::setUp();
  $this->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
  // Create a test user and log in.
  $this->testUser = $this->drupalCreateUser([
    'access content',
    'search content',
  ]);
  $this->drupalLogin($this->testUser);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.