Skip to content

Commit

Permalink
Use GeneralUtilityManager instead of ObjectManager
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizzor committed Oct 10, 2024
1 parent e065e91 commit 031b801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Functional/Controller/AbstractControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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();
Expand Down

0 comments on commit 031b801

Please sign in to comment.