diff options
Diffstat (limited to 'apps/files/tests/Activity/ProviderTest.php')
-rw-r--r-- | apps/files/tests/Activity/ProviderTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/tests/Activity/ProviderTest.php b/apps/files/tests/Activity/ProviderTest.php index 73c726dac3c..7803563a11c 100644 --- a/apps/files/tests/Activity/ProviderTest.php +++ b/apps/files/tests/Activity/ProviderTest.php @@ -6,6 +6,7 @@ namespace OCA\Files\Tests\Activity; use OCA\Files\Activity\Provider; +use OCP\Activity\Exceptions\UnknownActivityException; use OCP\Activity\IEvent; use OCP\Activity\IEventMerger; use OCP\Activity\IManager; @@ -132,7 +133,7 @@ class ProviderTest extends TestCase { public function testGetFileThrows(): void { - $this->expectException(\InvalidArgumentException::class); + $this->expectException(UnknownActivityException::class); $provider = $this->getProvider(); self::invokePrivate($provider, 'getFile', ['/Foo/Bar.txt', null]); |