function SecureSiteConfig403Test::testSecureSiteConfig403ResetPrevious in Secure Site 8
Restore previous access denied page.
File
- src/
Tests/ ForcedAuth/ SecureSiteConfig403Test.php, line 73 - Contains Drupal\securesite\Tests\ForcedAuth\SecureSiteConfig403Test
Class
- SecureSiteConfig403Test
- Functional tests for configuring access denied page.
Namespace
Drupal\securesite\Tests\ForcedAuthCode
function testSecureSiteConfig403ResetPrevious() {
\Drupal::config('securesite.settings')
->set('securesite_403', 'site_403')
->save();
$this
->drupalPostForm('admin/config/development/logging', array(), 'Reset to defaults');
$this
->assertTrue(\Drupal::config('system.site')
->get('page.403') == 'site_403', t('Restoring previous access denied page.'));
}