Example #1
0
 public function testsend_assignment_notifications()
 {
     $meeting = new Meeting();
     $meeting->date_start = '2016-02-11 17:30:00';
     $meeting->date_end = '2016-02-11 17:30:00';
     $admin = new Administration();
     $admin->retrieveSettings();
     $sendNotifications = false;
     $notify_user = new User(1);
     //execute the method and test if it works and does not throws an exception.
     try {
         $meeting->send_assignment_notifications($notify_user, $admin);
         $this->assertTrue(true);
     } catch (Exception $e) {
         $this->fail();
     }
 }