public function CacheReportCase::testPageExpireTwo in Site Audit 8.2
Set cache.page.max_age between 0 and 900. Check should Warn.
File
- tests/cacheReportTest.php, line 46 
- Contains /site_audit/tests/CacheReportCase.
Class
- CacheReportCase
- Class CacheReportCase.
Namespace
UnishCode
public function testPageExpireTwo() {
  $eval1 = <<<EOT
\$config = \\Drupal::configFactory()->getEditable('system.performance');
\$config->set('cache.page.max_age', rand(1,89));
\$config->save();
EOT;
  $this
    ->drush('php-eval', array(
    $eval1,
  ), $this->options);
  $this
    ->drush('audit-cache', array(), $this->options + array(
    'detail' => NULL,
    'json' => NULL,
  ));
  $output = json_decode($this
    ->getOutput());
  $this
    ->assertEquals(\SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN, $output->checks->SiteAuditCheckCachePageExpire->score);
}