You are here

public function SecurityReviewTest::testConfigLogging in Security Review 8

Tests the 'logging' setting.

File

tests/src/Kernel/SecurityReviewTest.php, line 40

Class

SecurityReviewTest
Contains tests related to the SecurityReview class.

Namespace

Drupal\Tests\security_review\Kernel

Code

public function testConfigLogging() {
  $this
    ->assertTrue($this->securityReview
    ->isLogging(), 'Logging enabled by default.');
  $this->securityReview
    ->setLogging(FALSE);
  $this
    ->assertFalse($this->securityReview
    ->isLogging(), 'Logging disabled.');
}