You are here

public function AuthcacheCommentTest::testNoUserNameInCommentForm in Authenticated User Page Caching (Authcache) 7.2

Test that the username is not displayed on the comment form.

File

modules/authcache_comment/authcache_comment.test, line 156
Test cases for the Authcache Comment module.

Class

AuthcacheCommentTest
Tests for markup substitution.

Code

public function testNoUserNameInCommentForm() {
  $this
    ->drupalLogin($this->member1);
  $this
    ->drupalGet('comment/reply/' . $this->node->nid);
  $this
    ->assertNoText($this->member1->name, 'Should remove the users name from the comment form');
  $this
    ->drupalLogout();
}