You are here

public function HoneypotFormTestCase::testProtectCommentFormHoneypotBypass in Honeypot 7

File

./honeypot.test, line 135
Testing for Honeypot module.

Class

HoneypotFormTestCase
Test the functionality of the Honeypot module for forms.

Code

public function testProtectCommentFormHoneypotBypass() {

  // Log in the admin user.
  $this
    ->drupalLogin($this->adminUser);

  // Get the comment reply form and ensure there's no 'url' field.
  $this
    ->drupalGet('comment/reply/' . $this->node->nid);
  $this
    ->assertNoText('id="edit-url" name="url"', 'Honeypot home page field not shown.');
}