function SecureSiteConfig403Test::testSecureSiteConfig403Save in Secure Site 8
Check access denied page when setting forced authentication on restricted pages.
File
- src/
Tests/ ForcedAuth/ SecureSiteConfig403Test.php, line 45 - Contains Drupal\securesite\Tests\ForcedAuth\SecureSiteConfig403Test
Class
- SecureSiteConfig403Test
- Functional tests for configuring access denied page.
Namespace
Drupal\securesite\Tests\ForcedAuthCode
function testSecureSiteConfig403Save() {
$this
->drupalPostForm('admin/config/securesite', array(
'securesite_enabled' => SECURESITE_403,
), 'Save configuration');
$this
->assertTrue(\Drupal::config('system.site')
->get('page.403') == 'securesite_403', t('Checking access denied page when setting forced authentication on restricted pages.'));
}