function ReCaptchaBasicTest::testReCaptchaAdminAccess in reCAPTCHA 6.2
Same name and namespace in other branches
- 7.2 recaptcha.test \ReCaptchaBasicTest::testReCaptchaAdminAccess()
Test access to the administration page.
File
- ./
recaptcha.test, line 48 - Tests for reCAPTCHA module.
Class
- ReCaptchaBasicTest
- @file Tests for reCAPTCHA module.
Code
function testReCaptchaAdminAccess() {
$this
->drupalLogin($this->admin_user);
$this
->drupalGet('admin/user/captcha/recaptcha');
$this
->assertNoText(t('Access denied'), 'Admin users should be able to access the reCAPTCHA admin page', 'reCAPTCHA');
$this
->drupalLogout();
}