Example #1
0
 public function test000CleanUp()
 {
     #  remove the schedules
     $schResults = $this->service->findAllSchedules();
     foreach ($schResults->results as $schedule) {
         $this->service->deleteSchedule($schedule, true);
     }
     #  remove payment methods
     $pmResults = $this->service->findAllPaymentMethods();
     foreach ($pmResults->results as $pm) {
         $this->service->deletePaymentMethod($pm, true);
     }
     #  remove customers
     $custResults = $this->service->findAllCustomers();
     foreach ($custResults->results as $c) {
         $this->service->deleteCustomer($c, true);
     }
 }