From fb72f7c10f3b9908c8c988d2b6e76d6e4ea4776f Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Mon, 12 Aug 2024 14:15:49 +0600 Subject: [PATCH] pkp/pkp-lib#9892 fixing broken unit test --- tests/classes/monograph/SubmissionFileDAOTest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/classes/monograph/SubmissionFileDAOTest.php b/tests/classes/monograph/SubmissionFileDAOTest.php index a7c19ccae5f..71f904bd050 100644 --- a/tests/classes/monograph/SubmissionFileDAOTest.php +++ b/tests/classes/monograph/SubmissionFileDAOTest.php @@ -95,9 +95,6 @@ protected function setUp(): void ->onlyMethods(['getById']) ->getMock(); DAORegistry::registerDAO('GenreDAO', $genreDao); - $genreDao->expects($this->any()) - ->method('getById') - ->willReturnCallback([$this, 'getTestGenre']); $this->_cleanFiles();