From 3efc6b67c9427fdc5e95aeeb366e88a21b7edc26 Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Mon, 12 Aug 2024 14:42:22 +0600 Subject: [PATCH] pkp/pkp-lib#9892 fixed deprecated tests method --- .../oaiMetadataFormats/dc/tests/OAIMetadataFormat_DCTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/oaiMetadataFormats/dc/tests/OAIMetadataFormat_DCTest.php b/plugins/oaiMetadataFormats/dc/tests/OAIMetadataFormat_DCTest.php index d8df8881fc1..71449fcd7cf 100755 --- a/plugins/oaiMetadataFormats/dc/tests/OAIMetadataFormat_DCTest.php +++ b/plugins/oaiMetadataFormats/dc/tests/OAIMetadataFormat_DCTest.php @@ -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 */ @@ -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)