protected function PollVoteJavascriptTest::setUp in Poll 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ PollVoteJavascriptTest.php, line 67
Class
- PollVoteJavascriptTest
- Tests voting on a poll using Javascript.
Namespace
Drupal\Tests\poll\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser(array_merge([
'administer polls',
'access polls',
], $this->adminPermissions));
$this->webUser = $this
->drupalCreateUser(array_merge([
'access polls',
'cancel own vote',
], $this->webUserPermissions));
$this->poll = $this
->pollCreate();
}