public function ContentReportCase::testVocabulariesUnusedWarn in Site Audit 8.2
Warn if empty vocabularies present.
File
- tests/
contentReportTest.php, line 28 - Contains /site_audit/tests/ContentReportCase.
Class
- ContentReportCase
- Class ContentReportCase.
Namespace
UnishCode
public function testVocabulariesUnusedWarn() {
$this
->drush('pm-enable', array(
'taxonomy',
), $this->options);
$this
->drush('audit-content', array(), $this->options + array(
'detail' => NULL,
'json' => NULL,
));
$output = json_decode($this
->getOutput());
$this
->assertEquals(\SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN, $output->checks->SiteAuditCheckContentVocabulariesUnused->score);
}