public function SecurityReviewTestCase::testCheckSkippingUI in Security Review 7
File
- tests/security_review.test, line 179
- security_review.test.
Drupal test cases for Security Review.
Class
- SecurityReviewTestCase
- Tests the functionality of the Security Review module.
Code
public function testCheckSkippingUI() {
$submit_button = 'Save configuration';
$edit = array(
'security_review_skip[error_reporting]' => TRUE,
);
$this
->drupalPost('admin/reports/security-review/settings', $edit, $submit_button);
$this
->runChecklist();
$this
->assertText('Errors are written to the screen.');
$edit = array(
'error_level' => 0,
);
$this
->drupalPost('admin/config/development/logging', $edit, $submit_button);
$this
->runChecklist();
$this
->assertText('Errors are written to the screen.');
}