diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-18 11:26:29 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-18 11:26:29 +0300 |
commit | 71e6cf74cca5a0f55e003e3e94478f29a7f86ea7 (patch) | |
tree | fb1a7386af1c7425901d81dd8ffedac754d0029c /tests/Unit | |
parent | dd3137185379dd39d05c7f9775616822f6284d40 (diff) |
Fix strict activities incompatibility in unit tests
Ref https://github.com/nextcloud/server/commit/16817f3743cf70010182ff269185e27acf697523
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/Unit')
-rw-r--r-- | tests/Unit/Activity/ProviderTest.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/Unit/Activity/ProviderTest.php b/tests/Unit/Activity/ProviderTest.php index ec33887..5678fcc 100644 --- a/tests/Unit/Activity/ProviderTest.php +++ b/tests/Unit/Activity/ProviderTest.php @@ -65,7 +65,6 @@ class ProviderTest extends TestCase { return [ ['totp_enabled_subject'], ['totp_disabled_subject'], - [null], ]; } @@ -98,13 +97,8 @@ class ProviderTest extends TestCase { $event->expects($this->once()) ->method('getSubject') ->will($this->returnValue($subject)); - if (is_null($subject)) { - $event->expects($this->never()) - ->method('setSubject'); - } else { - $event->expects($this->once()) - ->method('setSubject'); - } + $event->expects($this->once()) + ->method('setSubject'); $this->provider->parse($lang, $event); } |