public function saveSortType() { $type = MiniHttp::getParam("type", ""); $sortOrder = MiniHttp::getParam("sortOrder", ""); $biz = new UserBiz(); return $biz->saveSortType($type, $sortOrder); }
/** * 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()); }