Skip to content

Commit

Permalink
pkp/pkp-lib#9892 fixed deprecated tests method
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir authored and asmecher committed Aug 12, 2024
1 parent 012760c commit 3efc6b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function testToXml()
$router->setApplication($application);
$router->expects($this->any())
->method('url')
->will($this->returnCallback(fn ($request, $newContext = null, $handler = null, $op = null, $path = null) => $handler . '-' . $op . '-' . implode('-', $path)));
->willReturnCallback(fn ($request, $newContext = null, $handler = null, $op = null, $path = null) => $handler . '-' . $op . '-' . implode('-', $path));

// Dispatcher
/** @var Dispatcher|MockObject */
Expand All @@ -220,7 +220,7 @@ public function testToXml()
->getMock();
$dispatcher->expects($this->any())
->method('url')
->will($this->returnCallback(fn ($request, $shortcut, $newContext = null, $handler = null, $op = null, $path = null) => $handler . '-' . $op . '-' . implode('-', $path)));
->willReturnCallback(fn ($request, $shortcut, $newContext = null, $handler = null, $op = null, $path = null) => $handler . '-' . $op . '-' . implode('-', $path));

// Request
$requestMock = $this->getMockBuilder(Request::class)
Expand Down

0 comments on commit 3efc6b6

Please sign in to comment.