Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_totp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-18 11:26:29 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-18 11:26:29 +0300
commit71e6cf74cca5a0f55e003e3e94478f29a7f86ea7 (patch)
treefb1a7386af1c7425901d81dd8ffedac754d0029c /tests
parentdd3137185379dd39d05c7f9775616822f6284d40 (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')
-rw-r--r--tests/Unit/Activity/ProviderTest.php10
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);
}