public function SecurityReviewTest::testConfigLastRun in Security Review 8
Tests the 'last_run' setting.
File
- tests/
src/ Kernel/ SecurityReviewTest.php, line 69
Class
- SecurityReviewTest
- Contains tests related to the SecurityReview class.
Namespace
Drupal\Tests\security_review\KernelCode
public function testConfigLastRun() {
$this
->assertEquals(0, $this->securityReview
->getLastRun(), 'last_run is 0 by default.');
$time = time();
$this->securityReview
->setLastRun($time);
$this
->assertEquals($time, $this->securityReview
->getLastRun(), 'last_run set to now.');
}