/**
  * @covers CentralAuthUser::adminLock
  * @covers CentralAuthUser::adminUnlock
  * @covers CentralAuthUser::adminSetHidden
  */
 public function testAdminLockAndHide()
 {
     $caUser = new CentralAuthUser('GlobalUser');
     $this->assertSame(true, $caUser->exists());
     #sanity
     $this->assertSame(false, $caUser->isHidden());
     #sanity
     $this->assertSame(false, $caUser->isLocked());
     #sanity
     $caUser->adminLock();
     $caUser->adminSetHidden(CentralAuthUser::HIDDEN_LISTS);
     // Check the DB
     $this->assertSelect('globaluser', array('gu_name', 'gu_locked', 'gu_hidden'), array('gu_name' => 'GlobalUser'), array(array('GlobalUser', '1', CentralAuthUser::HIDDEN_LISTS)));
     $caUser = new CentralAuthUser('GlobalUser');
     $this->assertSame(true, $caUser->exists());
     $this->assertSame(true, $caUser->isLocked());
     $this->assertSame(true, $caUser->isHidden());
     $caUser->adminUnlock();
     $caUser->adminSetHidden(CentralAuthUser::HIDDEN_NONE);
     $caUser = new CentralAuthUser('GlobalUser');
     $this->assertSame(true, $caUser->exists());
     $this->assertSame(false, $caUser->isHidden());
     $this->assertSame(false, $caUser->isLocked());
 }