Example #1
0
 public function testInsertTemplateNotExists()
 {
     $newUser = array('timeperiod_tp_id' => 1, 'timeperiod_tp_id2' => 1, 'firstname' => 'New user', 'login' => 'New user', 'password' => 'wxcvb', 'language_id' => 'en_US', 'user_host_notification_options' => 'n', 'user_service_notification_options' => 'n', 'user_email' => '*****@*****.**', 'user_enable_notifications' => '1', 'is_activated' => '1', 'auth_type' => 'local', 'user_register' => '1', 'user_template_id' => 42);
     $this->setExpectedException('PDOException', '', 23000);
     User::insert($newUser);
 }