Esempio n. 1
0
 public function saveSortType()
 {
     $type = MiniHttp::getParam("type", "");
     $sortOrder = MiniHttp::getParam("sortOrder", "");
     $biz = new UserBiz();
     return $biz->saveSortType($type, $sortOrder);
 }
Esempio n. 2
0
 /**
  * test User Business Logic
  * @return [type] [description]
  */
 public function testUserBiz()
 {
     $userBo = new UserBO();
     $userBo->setId(1);
     $userBo->setUsername('hongker');
     $userBo->setPassword('my pass');
     $userBiz = new UserBiz();
     $newPass = '******';
     $this->assertTrue($userBiz->changePass($userBo, $newPass));
     $this->assertEquals($newPass, $userBo->getPassword());
 }