diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-03 12:12:10 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-08 09:01:01 +0200 |
commit | acf8149f17fb940c9c9ce1519869a1de34ef6a84 (patch) | |
tree | 2de35632bdd3ed5b0ba8affce270160a84abb8dd /lib | |
parent | 0d154595f81e9c181a73ee44650fffe78bccc002 (diff) | |
download | nextcloud-server-acf8149f17fb940c9c9ce1519869a1de34ef6a84.tar.gz nextcloud-server-acf8149f17fb940c9c9ce1519869a1de34ef6a84.zip |
Add tests for Action
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/notification/action.php | 2 | ||||
-rw-r--r-- | lib/public/notification/iaction.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/notification/action.php b/lib/private/notification/action.php index f0bcb23c877..7f654bf9082 100644 --- a/lib/private/notification/action.php +++ b/lib/private/notification/action.php @@ -106,7 +106,7 @@ class Action implements IAction { if (!is_string($link) || $link === '' || isset($link[256])) { throw new \InvalidArgumentException('The given link is invalid'); } - if (!in_array($requestType, ['GET', 'POST', 'PUT', 'DELETE'])) { + if (!in_array($requestType, ['GET', 'POST', 'PUT', 'DELETE'], true)) { throw new \InvalidArgumentException('The given request type is invalid'); } $this->link = $link; diff --git a/lib/public/notification/iaction.php b/lib/public/notification/iaction.php index 64b95bdb5ad..8db1eaa6543 100644 --- a/lib/public/notification/iaction.php +++ b/lib/public/notification/iaction.php @@ -97,11 +97,13 @@ interface IAction { /** * @return bool + * @since 8.2.0 */ public function isValid(); /** * @return bool + * @since 8.2.0 */ public function isValidParsed(); } |