diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-04-26 09:04:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 09:04:33 +0200 |
commit | a449038406b75e28d92070a38399b9d9de6e034a (patch) | |
tree | 3405b4423a2af3399284d67cf3190bc4d91ed052 /tests | |
parent | a89182648a5a87e76059ca498878677db796ff5b (diff) | |
parent | 41cbc76ae335e892704ce9f7b1c10ca05ca55a08 (diff) |
Merge pull request #7215 from nextcloud/feature/move-sharing-listeners-anonymous-functions-to-static
Move sharing listeners to static
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/Listener/RestrictStartingCallsTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/php/Listener/RestrictStartingCallsTest.php b/tests/php/Listener/RestrictStartingCallsTest.php index b94da5a55..2ffbe04ab 100644 --- a/tests/php/Listener/RestrictStartingCallsTest.php +++ b/tests/php/Listener/RestrictStartingCallsTest.php @@ -97,7 +97,9 @@ class RestrictStartingCallsTest extends TestCase { $this->expectException(ForbiddenException::class); } + $this->overwriteService(RestrictStartingCalls::class, $this->listener); $this->listener->checkStartCallPermissions($event); + $this->restoreService(RestrictStartingCalls::class); if (!$throws) { self::assertTrue(true); |