public function tearDown()
 {
     /** @var modUser $user */
     $user = $this->modx->getObject('modUser', array('username' => '*****@*****.**'));
     if ($user) {
         $user->remove();
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     /** @var modUser $user */
     $user = $this->modx->getObject('modUser', array('username' => 'unit-test-user-5796'));
     if ($user) {
         $user->remove();
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     /** @var modUser $user */
     $user = $this->modx->getObject('modUser', array('username' => 'unit.test.user'));
     if ($user) {
         $user->remove();
     }
     $userGroups = $this->modx->getCollection('modUserGroup', array('name:LIKE' => 'UnitTest%'));
     /** @var $userGroup modUserGroup */
     foreach ($userGroups as $userGroup) {
         $userGroup->remove();
     }
     parent::tearDown();
     $this->user = null;
     $this->controller = null;
     $this->processor = null;
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->user = null;
 }