diff options
author | Joas Schilling <coding@schilljs.com> | 2024-09-18 16:16:58 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-09-23 12:31:59 +0200 |
commit | 096f893d46c0b8d226ca086d4086efed18f66230 (patch) | |
tree | 9efda514533c3e08ccfc9bca220938ab76c04e0f /apps/twofactor_backupcodes | |
parent | 0dc23639cad1373052fdaea5ca1d1d3c092a959c (diff) | |
download | nextcloud-server-096f893d46c0b8d226ca086d4086efed18f66230.tar.gz nextcloud-server-096f893d46c0b8d226ca086d4086efed18f66230.zip |
fix(activity): Update more activity providers to use new exceptionsfollowup/48086/fix-more-activity-providers
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/twofactor_backupcodes')
-rw-r--r-- | apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php b/apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php index fb2c419f521..e41db8b0a32 100644 --- a/apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php +++ b/apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php @@ -8,8 +8,8 @@ declare(strict_types=1); */ namespace OCA\TwoFactorBackupCodes\Test\Unit\Activity; -use InvalidArgumentException; use OCA\TwoFactorBackupCodes\Activity\Provider; +use OCP\Activity\Exceptions\UnknownActivityException; use OCP\Activity\IEvent; use OCP\Activity\IManager; use OCP\IL10N; @@ -47,7 +47,7 @@ class ProviderTest extends TestCase { $event->expects($this->once()) ->method('getApp') ->willReturn('comments'); - $this->expectException(InvalidArgumentException::class); + $this->expectException(UnknownActivityException::class); $this->provider->parse($lang, $event); } @@ -109,7 +109,7 @@ class ProviderTest extends TestCase { ->method('getSubject') ->willReturn('unrelated'); - $this->expectException(InvalidArgumentException::class); + $this->expectException(UnknownActivityException::class); $this->provider->parse($lang, $event); } } |