protected function ViewsExposedGroupsTestBase::setUp in Views exposed groups 3.0.x
Overrides BrowserTestBase::setUp
2 calls to ViewsExposedGroupsTestBase::setUp()
- ViewsExposedGroupsExposedOperatorTest::setUp in tests/
src/ Functional/ ViewsExposedGroupsExposedOperatorTest.php - ViewsExposedGroupsInheritedPropertiesTest::setUp in tests/
src/ Functional/ ViewsExposedGroupsInheritedPropertiesTest.php
2 methods override ViewsExposedGroupsTestBase::setUp()
- ViewsExposedGroupsExposedOperatorTest::setUp in tests/
src/ Functional/ ViewsExposedGroupsExposedOperatorTest.php - ViewsExposedGroupsInheritedPropertiesTest::setUp in tests/
src/ Functional/ ViewsExposedGroupsInheritedPropertiesTest.php
File
- tests/
src/ Functional/ ViewsExposedGroupsTestBase.php, line 55
Class
- ViewsExposedGroupsTestBase
- Base test class for views_exposed_groups module tests.
Namespace
Drupal\Tests\views_exposed_groups\FunctionalCode
protected function setUp() {
parent::setUp();
// Creates several random nodes for the view.
$this->testNodes = $this
->createNodes();
// Creates some user accounts to test with.
$this->privilegedUser = $this
->drupalCreateUser([
'access administration pages',
'access content',
'administer site configuration',
'administer views',
'bypass node access',
]);
$this->unprivilegedUser = $this
->drupalCreateUser([
'access content',
]);
// Sets some nice-to-have views configuration.
$settings = \Drupal::configFactory()
->getEditable('views.settings');
$settings
->set('ui.show.advanced_column', TRUE);
$settings
->set('ui.show.master_display', TRUE);
$settings
->save();
// Adds a view to use for testing.
$this->defaultView = $this
->makeDefaultView();
}