diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-11-17 09:26:13 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-11-17 09:26:13 +0100 |
commit | 2fde6a77d7b586a5f51fdc9a93da1f3961e696e3 (patch) | |
tree | 1e1aee5882ea17df1e0a9cde9f54a49243c47f26 /lib | |
parent | 705d208a8aba55cdb509380db19a0b4e2413d1eb (diff) | |
download | nextcloud-server-2fde6a77d7b586a5f51fdc9a93da1f3961e696e3.tar.gz nextcloud-server-2fde6a77d7b586a5f51fdc9a93da1f3961e696e3.zip |
Add tests for the "return $this" and fix it on the new method
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/notification/action.php | 4 | ||||
-rw-r--r-- | lib/private/notification/iaction.php | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/notification/action.php b/lib/private/notification/action.php index 958b085b38e..8eade697025 100644 --- a/lib/private/notification/action.php +++ b/lib/private/notification/action.php @@ -50,7 +50,7 @@ class Action implements IAction { $this->labelParsed = ''; $this->link = ''; $this->requestType = ''; - $this->icon = ''; + $this->primary = false; } /** @@ -99,6 +99,7 @@ class Action implements IAction { /** * @param $primary bool + * @return $this * @throws \InvalidArgumentException if $primary is invalid * @since 9.0.0 */ @@ -108,6 +109,7 @@ class Action implements IAction { } $this->primary = $primary; + return $this; } /** diff --git a/lib/private/notification/iaction.php b/lib/private/notification/iaction.php index 4aed2e92517..f7366dd4388 100644 --- a/lib/private/notification/iaction.php +++ b/lib/private/notification/iaction.php @@ -62,6 +62,7 @@ interface IAction { /** * @param $primary bool + * @return $this * @throws \InvalidArgumentException if $primary is invalid * @since 9.0.0 */ |