diff options
Diffstat (limited to 'tests/lib/Federation/CloudIdManagerTest.php')
-rw-r--r-- | tests/lib/Federation/CloudIdManagerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/Federation/CloudIdManagerTest.php b/tests/lib/Federation/CloudIdManagerTest.php index fe673588bba..224acadbde4 100644 --- a/tests/lib/Federation/CloudIdManagerTest.php +++ b/tests/lib/Federation/CloudIdManagerTest.php @@ -28,7 +28,7 @@ class CloudIdManagerTest extends TestCase { /** @var CloudIdManager */ private $cloudIdManager; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->cloudIdManager = new CloudIdManager(); } @@ -71,9 +71,10 @@ class CloudIdManagerTest extends TestCase { * * @param string $cloudId * - * @expectedException \InvalidArgumentException */ public function testInvalidCloudId($cloudId) { + $this->expectException(\InvalidArgumentException::class); + $this->cloudIdManager->resolveCloudId($cloudId); } |