function delete_testimonial($testimonial_id) { $testi = new Testimonials(); $testi->testimonial_id = $testimonial_id; $testi->delete_testimonial(); }
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); }