diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-13 20:23:29 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-06-17 16:36:24 +0200 |
commit | d5805df6c2d89c6c4e5db7aa346cc9544689add4 (patch) | |
tree | 77edb19f549c1aa2d21f534805f69d766ca56df4 /tests/lib/Support | |
parent | df072471a7739e0bba30bf2d1687d6461354daf1 (diff) | |
download | nextcloud-server-d5805df6c2d89c6c4e5db7aa346cc9544689add4.tar.gz nextcloud-server-d5805df6c2d89c6c4e5db7aa346cc9544689add4.zip |
Fix subscription tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/lib/Support')
-rw-r--r-- | tests/lib/Support/Subscription/RegistryTest.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lib/Support/Subscription/RegistryTest.php b/tests/lib/Support/Subscription/RegistryTest.php index 21dad6e50e1..c9557def0fd 100644 --- a/tests/lib/Support/Subscription/RegistryTest.php +++ b/tests/lib/Support/Subscription/RegistryTest.php @@ -74,6 +74,18 @@ class RegistryTest extends TestCase { $this->assertSame(true, $this->registry->delegateHasValidSubscription()); } + public function testDelegateHasExtendedSupport() { + /* @var ISubscription|\PHPUnit_Framework_MockObject_MockObject $subscription */ + $subscription = $this->createMock(ISubscription::class); + $subscription->expects($this->once()) + ->method('hasExtendedSupport') + ->willReturn(true); + $this->registry->register($subscription); + + $this->assertSame(true, $this->registry->delegateHasExtendedSupport()); + } + + public function testDelegateGetSupportedApps() { /* @var ISupportedApps|\PHPUnit_Framework_MockObject_MockObject $subscription */ $subscription = $this->createMock(ISupportedApps::class); |