You are here

public function ReCaptchaBasicTest::testReCaptchaAdminAccess in reCAPTCHA 7.2

Same name and namespace in other branches
  1. 6.2 recaptcha.test \ReCaptchaBasicTest::testReCaptchaAdminAccess()

Test access to the administration page.

File

./recaptcha.test, line 49
Tests for reCAPTCHA module.

Class

ReCaptchaBasicTest
@file Tests for reCAPTCHA module.

Code

public function testReCaptchaAdminAccess() {
  $this
    ->drupalLogin($this->admin_user);
  $this
    ->drupalGet('admin/config/people/captcha/recaptcha');
  $this
    ->assertNoText(t('Access denied'), 'Admin users should be able to access the reCAPTCHA admin page', 'reCAPTCHA');
  $this
    ->drupalLogout();
}