Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix integration test dummy implementation
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jul 18, 2019
commit 66637374c1fe099c17e1fe160cb9465a113d0c19
22 changes: 21 additions & 1 deletion tests/Integration/app/lib/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,33 @@

class Notifier implements INotifier {

/**
* Identifier of the notifier, only use [a-z0-9_]
*
* @return string
* @since 17.0.0
*/
public function getID(): string {
return 'notificationsintegrationtesting';
}

/**
* Human readable name describing the notifier
*
* @return string
* @since 17.0.0
*/
public function getName(): string {
return 'Integration test';
}

/**
* @param INotification $notification
* @param string $languageCode The code of the language that should be used to prepare the notification
* @return INotification
* @throws \InvalidArgumentException When the notification was not prepared by a notifier
*/
public function prepare(INotification $notification, $languageCode) {
public function prepare(INotification $notification, string $languageCode): INotification {
if ($notification->getApp() === 'notificationsintegrationtesting') {
$notification->setParsedSubject($notification->getSubject());
$notification->setParsedMessage($notification->getMessage());
Expand Down