You are here

public function ExtensionsReportCase::testUnrecommendedWarn in Site Audit 8.2

Enable a unrecommended extension. Should Warn.

File

tests/extensionsReportTest.php, line 67
Contains /site_audit/tests/ExtensionsReportCase.

Class

ExtensionsReportCase
Class ExtensionsReportCase.

Namespace

Unish

Code

public function testUnrecommendedWarn() {
  $this
    ->drush('pm-download', array(
    'php',
  ), $this->options);
  $this
    ->drush('pm-enable', array(
    'php',
  ), $this->options);
  $this
    ->drush('audit-extensions', array(), $this->options + array(
    'detail' => NULL,
    'json' => NULL,
  ));
  $output = json_decode($this
    ->getOutput());
  $this
    ->assertEquals(\SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL, $output->checks->SiteAuditCheckExtensionsUnrecommended->score);
}