Skip to content

Commit

Permalink
pkp/pkp-lib#9899 fixed PHPUnit deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Oct 25, 2024
1 parent dfa7b6e commit 1f43d08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/jobs/doi/DepositIssueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1f43d08

Please sign in to comment.