function GlossaryViewTest::setUp
Same name in other branches
- 9 core/modules/views/tests/src/FunctionalJavascript/GlossaryViewTest.php \Drupal\Tests\views\FunctionalJavascript\GlossaryViewTest::setUp()
- 10 core/modules/views/tests/src/FunctionalJavascript/GlossaryViewTest.php \Drupal\Tests\views\FunctionalJavascript\GlossaryViewTest::setUp()
- 11.x core/modules/views/tests/src/FunctionalJavascript/GlossaryViewTest.php \Drupal\Tests\views\FunctionalJavascript\GlossaryViewTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ views/ tests/ src/ FunctionalJavascript/ GlossaryViewTest.php, line 41
Class
- GlossaryViewTest
- Tests the basic AJAX functionality of the Glossary View.
Namespace
Drupal\Tests\views\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
ViewTestData::createTestViews(get_class($this), [
'views_test_config',
]);
// Create a Content type and some test nodes with titles that start with
// different letters.
$this->createContentType([
'type' => 'page',
]);
$titles = [
'Page One',
'Page Two',
'Another page',
];
foreach ($titles as $title) {
$this->createNode([
'title' => $title,
'language' => 'en',
]);
$this->createNode([
'title' => $title,
'language' => 'nl',
]);
}
// Create a user privileged enough to use exposed filters and view content.
$user = $this->drupalCreateUser([
'administer site configuration',
'access content',
'access content overview',
]);
$this->drupalLogin($user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.