function delete_testimonial($testimonial_id)
{
    $testi = new Testimonials();
    $testi->testimonial_id = $testimonial_id;
    $testi->delete_testimonial();
}
Пример #2
0
 public function testDelete_testimonial_WithEmptyId()
 {
     $testi = new Testimonials();
     $testi->testimonial_id = NULL;
     try {
         $testi->delete_testimonial();
     } catch (PAException $e) {
         $error = $e->message;
         $code = $e->code;
     }
     $this->assertEquals($code, REQUIRED_PARAMETERS_MISSING);
 }