diff options
Diffstat (limited to 'tests/lib/App/AppManagerTest.php')
-rw-r--r-- | tests/lib/App/AppManagerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php index 0dc93174a67..b3437ad290c 100644 --- a/tests/lib/App/AppManagerTest.php +++ b/tests/lib/App/AppManagerTest.php @@ -248,10 +248,11 @@ class AppManagerTest extends TestCase { * * @param string $type * - * @expectedException \Exception - * @expectedExceptionMessage test can't be enabled for groups. */ public function testEnableAppForGroupsForbiddenTypes($type) { + $this->expectException(\Exception::class); + $this->expectExceptionMessage('test can\'t be enabled for groups.'); + $group1 = $this->createMock(IGroup::class); $group1->method('getGID') ->willReturn('group1'); |