You are here

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';

  // Skip error reporting, change setting and test check result.
  $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.');

  // Alter error reporting.
  $edit = array(
    'error_level' => 0,
  );
  $this
    ->drupalPost('admin/config/development/logging', $edit, $submit_button);
  $this
    ->runChecklist();

  // Result still the same.
  $this
    ->assertText('Errors are written to the screen.');
}