From 031b80167deca73bfdf36f380f86318399823df9 Mon Sep 17 00:00:00 2001 From: Christopher Timm Date: Thu, 10 Oct 2024 16:11:24 +0200 Subject: [PATCH] Use GeneralUtilityManager instead of ObjectManager --- Tests/Functional/Controller/AbstractControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Functional/Controller/AbstractControllerTest.php b/Tests/Functional/Controller/AbstractControllerTest.php index a3c726fe8..6e40700f4 100644 --- a/Tests/Functional/Controller/AbstractControllerTest.php +++ b/Tests/Functional/Controller/AbstractControllerTest.php @@ -22,7 +22,7 @@ use TYPO3\CMS\Extbase\Mvc\View\GenericViewResolver; use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager; use TYPO3\CMS\Fluid\View\StandaloneView; - +use TYPO3\CMS\Core\Utility\GeneralUtility; abstract class AbstractControllerTest extends FunctionalTestCase { @@ -35,7 +35,7 @@ protected function setUpData($databaseFixtures): void foreach ($databaseFixtures as $filePath) { $this->importCSVDataSet($filePath); } - $this->persistenceManager = $this->objectManager->get(PersistenceManager::class); + $this->persistenceManager = GeneralUtility::makeInstance(PersistenceManager::class); $documentRepository = $this->initializeRepository(DocumentRepository::class, 0); $allFixtureDocuments = $documentRepository->findAll();