/** * @depends test_createUser */ public function testCreateNotification($User) { $Notification = new Notification(); $Notification->subject = "test"; $Notification->body = "such test, many wow"; $Notification->Author = $User; $Notification->setActionUrl("https://www.google.com.au"); $Notification->addRecipient($User->id, $User->username, $User->contact_email); $Notification->addHeader("blah", "thing"); $Notification->commit(); $Notification->dispatch(); $Notification->getRecipients(); return $Notification; }