You are here

public function UsersReportCase::testBlockedNumberOneFail in Site Audit 8.2

Block the user with uid 1. Check should Fail.

File

tests/usersReportTest.php, line 28
Contains /site_audit/tests/UsersReportCase.

Class

UsersReportCase
Class UsersReportCase.

Namespace

Unish

Code

public function testBlockedNumberOneFail() {
  $this
    ->drush('user-block', array(
    1,
  ), $this->options);
  $this
    ->drush('audit-users', array(), $this->options + array(
    'detail' => NULL,
    'json' => NULL,
  ));
  $output = json_decode($this
    ->getOutput());
  $this
    ->assertEquals(\SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL, $output->checks->SiteAuditCheckUsersBlockedNumberOne->score);
}