public function QuizQuestionTestBase::setUp in Quiz 6.x
Same name and namespace in other branches
- 8.6 tests/src/Functional/QuizQuestionTestBase.php \Drupal\Tests\quiz\Functional\QuizQuestionTestBase::setUp()
- 8.5 tests/src/Functional/QuizQuestionTestBase.php \Drupal\Tests\quiz\Functional\QuizQuestionTestBase::setUp()
Set up a question test case.
Parameters
array $modules: Array of modules to enable.
array $admin_permissions: Array of admin permissions to add.
array $user_permissions: Array of user permissions to add.
Return value
void|false
Overrides QuizTestBase::setUp
File
- tests/
src/ Functional/ QuizQuestionTestBase.php, line 29 - Unit tests for the quiz question Module.
Class
- QuizQuestionTestBase
- Base test class for Quiz questions.
Namespace
Drupal\Tests\quiz\FunctionalCode
public function setUp($admin_permissions = [], $user_permissions = []) {
$admin_permissions[] = "create {$this->getQuestionType()} quiz_question";
$admin_permissions[] = "update {$this->getQuestionType()} quiz_question";
parent::setUp($admin_permissions, $user_permissions);
}