You are here

public function HoneypotFormTest::testUserLoginNotProtected in Honeypot 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/HoneypotFormTest.php \Drupal\Tests\honeypot\Functional\HoneypotFormTest::testUserLoginNotProtected()

Make sure user login form is not protected.

File

tests/src/Functional/HoneypotFormTest.php, line 117

Class

HoneypotFormTest
Test Honeypot spam protection functionality.

Namespace

Drupal\Tests\honeypot\Functional

Code

public function testUserLoginNotProtected() {
  $this
    ->drupalGet('user');
  $this
    ->assertSession()
    ->responseNotContains('id="edit-url" name="url"');
}