Exemple #1
0
 public function testActiveUsers()
 {
     $ui = UserInfo::getByID(2);
     $ui->deactivate();
     $this->assertEquals(2, $this->list->getTotalResults());
     $this->list->includeInactiveUsers();
     $this->assertEquals(3, $this->list->getTotalResults());
     $this->list->filterByIsActive(0);
     $this->assertEquals(1, $this->list->getTotalResults());
 }
 private function getIsEmailInSystem($email)
 {
     //array_push($Adresses, Config::get('xmailer.allow'));
     $grp = new UserList();
     $grp->filterByKeywords($email);
     return $grp->getTotalResults() > 0;
 }
 /**
  * The total results of the query
  * @return int
  */
 public function getTotalResults()
 {
     return parent::getTotalResults();
 }