protected function QuestionCreationTest::setUp in Answers 1.0.x
Same name and namespace in other branches
- 2.0.x modules/core/tests/src/Functional/QuestionCreationTest.php \Drupal\Tests\answers_core\Functional\QuestionCreationTest::setUp()
Overrides NodeTestBase::setUp
File
- modules/
core/ tests/ src/ Functional/ QuestionCreationTest.php, line 41
Class
- QuestionCreationTest
- Create a node and test saving it.
Namespace
Drupal\Tests\answers_core\FunctionalCode
protected function setUp() : void {
parent::setUp();
$web_user = $this
->drupalCreateUser([
'create answers_question content',
'edit own answers_question content',
'edit own comments',
'access comments',
'post comments',
]);
$this
->drupalLogin($web_user);
$this->accessHandler = \Drupal::entityTypeManager()
->getAccessControlHandler('node');
}