You are here

public function CommentNotifyUserPreferencesTest::testUserCommentPreferences in Comment Notify 8

Tests the Comment follow-up notification settings.

File

tests/src/Functional/CommentNotifyUserPreferencesTest.php, line 125

Class

CommentNotifyUserPreferencesTest
Tests the Comment Notify users preferences.

Namespace

Drupal\Tests\comment_notify\Functional

Code

public function testUserCommentPreferences() {

  // Tests that the settings are present in the user profile.
  $this
    ->drupalLogin($this->authenticatedUser);
  $this
    ->drupalGet($this->authenticatedUser
    ->toUrl('edit-form')
    ->toString());
  $this
    ->assertTrue($this
    ->getSession()
    ->getPage()
    ->hasContent(t('Comment follow-up notification settings')));
  $this
    ->drupalLogout();
}