public function CacheReportCase::testPreprocessCssFail in Site Audit 8.2
Set js.preprocess to false. Check should Fail.
File
- tests/
cacheReportTest.php, line 118 - Contains /site_audit/tests/CacheReportCase.
Class
- CacheReportCase
- Class CacheReportCase.
Namespace
UnishCode
public function testPreprocessCssFail() {
$eval1 = <<<EOT
\$config = \\Drupal::configFactory()->getEditable('system.performance');
\$config->set('css.preprocess', FALSE);
\$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_FAIL, $output->checks->SiteAuditCheckCachePreprocessCss->score);
}