/** * * @group pdf-model */ public function test_get_notifications_name() { $form = GFAPI::get_form($this->form_id[0]); $notifications = GFPDF_Core_Model::get_notifications_name($form); /* * Run assertions */ $this->AssertEquals(true, is_array($notifications)); $this->AssertEquals(2, sizeof($notifications)); $this->AssertEquals(true, in_array('Admin Notification', $notifications)); $this->AssertEquals(true, in_array('User Notification', $notifications)); $this->AssertEquals(false, in_array('Notification', $notifications)); }