aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-04-18 10:05:49 +0200
committerGitHub <noreply@github.com>2024-04-18 10:05:49 +0200
commit2161387ac751b070a93e7eb8f38d006093703b0d (patch)
tree5f3862e206b4364f790534b13f100c0370c0e0a6 /tests
parentb75bb088d16d06178f1626990ec4c7e0c911596c (diff)
parent17744f8590513e6a1d0e2a19a101b5f6e7332fcc (diff)
downloadnextcloud-server-2161387ac751b070a93e7eb8f38d006093703b0d.tar.gz
nextcloud-server-2161387ac751b070a93e7eb8f38d006093703b0d.zip
Merge pull request #44886 from nextcloud/techdebt/noid/improved-activity-exceptions
fix(activity): Improved activity exceptions
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Activity/ManagerTest.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib/Activity/ManagerTest.php b/tests/lib/Activity/ManagerTest.php
index 9a39f21f4e5..0a38e3dd993 100644
--- a/tests/lib/Activity/ManagerTest.php
+++ b/tests/lib/Activity/ManagerTest.php
@@ -23,6 +23,7 @@
namespace Test\Activity;
+use OCP\Activity\Exceptions\IncompleteActivityException;
use OCP\IConfig;
use OCP\IL10N;
use OCP\IRequest;
@@ -167,7 +168,7 @@ class ManagerTest extends TestCase {
public function testPublishExceptionNoApp() {
- $this->expectException(\BadMethodCallException::class);
+ $this->expectException(IncompleteActivityException::class);
$event = $this->activityManager->generateEvent();
$this->activityManager->publish($event);
@@ -175,7 +176,7 @@ class ManagerTest extends TestCase {
public function testPublishExceptionNoType() {
- $this->expectException(\BadMethodCallException::class);
+ $this->expectException(IncompleteActivityException::class);
$event = $this->activityManager->generateEvent();
$event->setApp('test');
@@ -184,7 +185,7 @@ class ManagerTest extends TestCase {
public function testPublishExceptionNoAffectedUser() {
- $this->expectException(\BadMethodCallException::class);
+ $this->expectException(IncompleteActivityException::class);
$event = $this->activityManager->generateEvent();
$event->setApp('test')
@@ -194,7 +195,7 @@ class ManagerTest extends TestCase {
public function testPublishExceptionNoSubject() {
- $this->expectException(\BadMethodCallException::class);
+ $this->expectException(IncompleteActivityException::class);
$event = $this->activityManager->generateEvent();
$event->setApp('test')