summaryrefslogtreecommitdiffstats
path: root/apps/federation/tests/Middleware/AddServerMiddlewareTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation/tests/Middleware/AddServerMiddlewareTest.php')
-rw-r--r--apps/federation/tests/Middleware/AddServerMiddlewareTest.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/federation/tests/Middleware/AddServerMiddlewareTest.php b/apps/federation/tests/Middleware/AddServerMiddlewareTest.php
index 4620234d685..7bae5e566fc 100644
--- a/apps/federation/tests/Middleware/AddServerMiddlewareTest.php
+++ b/apps/federation/tests/Middleware/AddServerMiddlewareTest.php
@@ -68,13 +68,11 @@ class AddServerMiddlewareTest extends TestCase {
* @dataProvider dataTestAfterException
*
* @param \Exception $exception
- * @param string $message
* @param string $hint
*/
- public function testAfterException($exception, $message, $hint) {
+ public function testAfterException($exception, $hint) {
- $this->logger->expects($this->once())->method('error')
- ->with($message, ['app' => 'AddServerMiddlewareTest']);
+ $this->logger->expects($this->once())->method('logException');
$this->l10n->expects($this->any())->method('t')
->willReturnCallback(
@@ -98,8 +96,8 @@ class AddServerMiddlewareTest extends TestCase {
public function dataTestAfterException() {
return [
- [new HintException('message', 'hint'), 'message', 'hint'],
- [new \Exception('message'), 'message', 'message'],
+ [new HintException('message', 'hint'), 'hint'],
+ [new \Exception('message'), 'message'],
];
}