You are here

public function HCaptchaBasicTest::testHCaptchaAdminAccess in hCaptcha 7

Test access to the administration page.

File

./hcaptcha.test, line 49
Tests for hCaptcha module.

Class

HCaptchaBasicTest
@file Tests for hCaptcha module.

Code

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