protected function CommentNotifyAnonymousTest::setUp in Comment Notify 8
Test that the config page is working.
Overrides CommentNotifyTestBase::setUp
File
- tests/
src/ Functional/ CommentNotifyAnonymousTest.php, line 17
Class
- CommentNotifyAnonymousTest
- Comment notifications tests as anonymous user.
Namespace
Drupal\Tests\comment_notify\FunctionalCode
protected function setUp() {
parent::setUp();
// Allow anonymous users to post comments and get notifications.
user_role_grant_permissions(AccountInterface::ANONYMOUS_ROLE, [
'access comments',
'access content',
'post comments',
'skip comment approval',
'subscribe to comments',
]);
}