protected function CallbackViewsTest::setUp in Search Autocomplete 2.x
Same name and namespace in other branches
- 8 src/Tests/Views/CallbackViewsTest.php \Drupal\search_autocomplete\Tests\Views\CallbackViewsTest::setUp()
Overrides ViewTestBase::setUp
File
- src/
Tests/ Views/ CallbackViewsTest.php, line 164
Class
- CallbackViewsTest
- Test callback view configurations.
Namespace
Drupal\search_autocomplete\Tests\ViewsCode
protected function setUp($import_test_views = TRUE) : void {
parent::setUp();
// Log with admin permissions.
$this->adminUser = $this
->drupalCreateUser([
'access content',
'administer views',
'administer search autocomplete',
]);
$this
->drupalLogin($this->adminUser);
// Get the node manager.
$this->nodeStorage = $this->container
->get('entity_type.manager')
->getStorage('node');
}