public function setUp() { $this->_client = new soapClient(CopixUrl::getRequestedProtocol() . CopixUrl::getRequestedBasePath() . "index.php/wsserver/default/wsdl"); $sp = _daoSearchParams(); $sp->addCondition('login_dbuser', '=', 'WSUser'); _dao('auth|dbuser')->deleteBy($sp); $record = _daoRecord('auth|dbuser'); $record->login_dbuser = '******'; $record->password_dbuser = md5('WSUserPassword'); $record->email_dbuser = "******"; $record->enabled_dbuser = "******"; _dao('auth|dbuser')->insert($record); }
private function _testInsertTestData() { $dao = _dao('copixtestautodao'); $sp = _daoSearchParams(); $record = _daoRecord('copixtestautodao'); $record->type_test = '1'; $record->titre_test = 'Titre 1'; $record->description_test = 'Description du premier élément'; $record->date_test = '20060203'; $dao->insert($record); $record->type_test = '2'; $record->titre_test = 'Titre 2'; $record->description_test = 'Description du deuxième élément'; $record->date_test = '20060203'; $dao->insert($record); $record->type_test = '3'; $record->titre_test = 'Titre 3'; $record->description_test = 'Description du troisième élément'; $record->date_test = '20060204'; $dao->insert($record); $record->type_test = '4'; $record->titre_test = 'Titre 4'; $record->description_test = 'Description du troisième élément'; $record->date_test = '20060204'; $dao->insert($record); }