diff options
Diffstat (limited to 'tests/lib/Support/Subscription/RegistryTest.php')
-rw-r--r-- | tests/lib/Support/Subscription/RegistryTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Support/Subscription/RegistryTest.php b/tests/lib/Support/Subscription/RegistryTest.php index a2246bf1b1f..3793026be0f 100644 --- a/tests/lib/Support/Subscription/RegistryTest.php +++ b/tests/lib/Support/Subscription/RegistryTest.php @@ -46,10 +46,10 @@ class RegistryTest extends TestCase { $this->addToAssertionCount(1); } - /** - * @expectedException \OCP\Support\Subscription\Exception\AlreadyRegisteredException - */ + public function testDoubleRegistration() { + $this->expectException(\OCP\Support\Subscription\Exception\AlreadyRegisteredException::class); + /* @var ISubscription $subscription1 */ $subscription1 = $this->createMock(ISubscription::class); /* @var ISubscription $subscription2 */ |