From 0e52de8435fcc9121666e42d00541668f71dc088 Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Sat, 21 Sep 2024 22:44:57 +0600 Subject: [PATCH] pkp/pkp-lib#9899 fixed PHPUnit deprecation warning --- tests/jobs/doi/DepositIssueTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/jobs/doi/DepositIssueTest.php b/tests/jobs/doi/DepositIssueTest.php index 988c7e8a69e..baa22d819b3 100644 --- a/tests/jobs/doi/DepositIssueTest.php +++ b/tests/jobs/doi/DepositIssueTest.php @@ -101,7 +101,10 @@ public function testRunSerializedJob(): void /** @var \PKP\context\Context $contextMock */ $contextMock = Mockery::mock(get_class(Application::getContextDAO()->newDataObject())) ->makePartial() - ->shouldReceive('getData') + ->shouldReceive([ + 'getData' => '', + 'getLocalizedData' => '', + ]) ->getMock(); $depositIssueMock = new DepositIssue(