protected function PollTestBase::setUp in Poll 8
Overrides BrowserTestBase::setUp
5 calls to PollTestBase::setUp()
- PollBlockTest::setUp in tests/
src/ Functional/ PollBlockTest.php - PollFieldTest::setUp in tests/
src/ Functional/ PollFieldTest.php - PollHtmlSpecialCharactersTest::setUp in tests/
src/ Functional/ PollHtmlSpecialCharactersTest.php - PollVoteCheckHostnameTest::setUp in tests/
src/ Functional/ PollVoteCheckHostnameTest.php - PollVoteMultilingualTest::setUp in tests/
src/ Functional/ PollVoteMultilingualTest.php
5 methods override PollTestBase::setUp()
- PollBlockTest::setUp in tests/
src/ Functional/ PollBlockTest.php - PollFieldTest::setUp in tests/
src/ Functional/ PollFieldTest.php - PollHtmlSpecialCharactersTest::setUp in tests/
src/ Functional/ PollHtmlSpecialCharactersTest.php - PollVoteCheckHostnameTest::setUp in tests/
src/ Functional/ PollVoteCheckHostnameTest.php - PollVoteMultilingualTest::setUp in tests/
src/ Functional/ PollVoteMultilingualTest.php
File
- tests/
src/ Functional/ PollTestBase.php, line 58
Class
- PollTestBase
- Defines a base class for testing the Poll module.
Namespace
Drupal\Tests\poll\FunctionalCode
protected function setUp() {
parent::setUp();
$this
->drupalPlaceBlock('local_tasks_block');
$this
->drupalPlaceBlock('local_actions_block');
$this
->drupalPlaceBlock('page_title_block');
$this->admin_user = $this
->drupalCreateUser(array_merge([
'administer polls',
'access polls',
'access poll overview',
'view poll results',
], $this->adminPermissions));
$this->web_user = $this
->drupalCreateUser(array_merge([
'access polls',
'cancel own vote',
], $this->webUserPermissions));
$this->poll = $this
->pollCreate();
}