File tree Expand file tree Collapse file tree 4 files changed +10
-23
lines changed
Expand file tree Collapse file tree 4 files changed +10
-23
lines changed Original file line number Diff line number Diff line change 1010use Phpoaipmh \Endpoint ;
1111use Phpoaipmh \Exception \OaipmhException ;
1212use SimpleXMLElement ;
13- use TYPO3 \CMS \Extbase \Persistence \Generic \PersistenceManager ;
14- use TYPO3 \CMS \Core \Utility \GeneralUtility ;
1513
1614class OaiPmhTest extends FunctionalTestCase
1715{
@@ -34,11 +32,6 @@ class OaiPmhTest extends FunctionalTestCase
3432 /** @var string */
3533 protected $ oaiUrlNoStoragePid ;
3634
37- /**
38- * @var PersistenceManager
39- */
40- protected $ persistenceManager ;
41-
4235 /**
4336 * @var SolrCoreRepository
4437 */
@@ -58,7 +51,6 @@ public function setUp(): void
5851 $ this ->importDataSet (__DIR__ . '/../../Fixtures/OaiPmh/pages.xml ' );
5952 $ this ->importCSVDataSet (__DIR__ . '/../../Fixtures/OaiPmh/solrcores.csv ' );
6053
61- $ this ->persistenceManager = GeneralUtility::makeInstance (PersistenceManager::class);
6254 $ this ->solrCoreRepository = $ this ->initializeRepository (SolrCoreRepository::class, 20000 );
6355
6456 $ this ->setUpOaiSolr ();
Original file line number Diff line number Diff line change 1212use Kitodo \Dlf \Tests \Functional \FunctionalTestCase ;
1313use TYPO3 \CMS \Core \Core \Bootstrap ;
1414use TYPO3 \CMS \Core \Utility \GeneralUtility ;
15- use TYPO3 \CMS \Extbase \Persistence \Generic \PersistenceManager ;
1615
1716class SolrIndexingTest extends FunctionalTestCase
1817{
19- /** @var PersistenceManager */
20- protected $ persistenceManager ;
21-
2218 /** @var CollectionRepository */
2319 protected $ collectionRepository ;
2420
@@ -35,8 +31,6 @@ public function setUp(): void
3531 // Needed for Indexer::add, which uses the language service
3632 Bootstrap::initializeLanguageObject ();
3733
38- $ this ->persistenceManager = $ this ->objectManager ->get (PersistenceManager::class);
39-
4034 $ this ->collectionRepository = $ this ->initializeRepository (CollectionRepository::class, 20000 );
4135 $ this ->documentRepository = $ this ->initializeRepository (DocumentRepository::class, 20000 );
4236 $ this ->solrCoreRepository = $ this ->initializeRepository (SolrCoreRepository::class, 20000 );
Original file line number Diff line number Diff line change 1010use TYPO3 \CMS \Core \Utility \GeneralUtility ;
1111use TYPO3 \CMS \Core \Utility \VersionNumberUtility ;
1212use TYPO3 \CMS \Extbase \Object \ObjectManager ;
13+ use TYPO3 \CMS \Extbase \Persistence \Generic \PersistenceManager ;
1314use TYPO3 \CMS \Extbase \Persistence \Generic \Typo3QuerySettings ;
1415
1516/**
@@ -60,9 +61,16 @@ class FunctionalTestCase extends \TYPO3\TestingFramework\Core\Functional\Functio
6061 */
6162 protected $ disableJsonWrappedResponse = false ;
6263
63- /** @var ObjectManager */
64+ /**
65+ * @var ObjectManager
66+ */
6467 protected $ objectManager ;
6568
69+ /**
70+ * @var PersistenceManager
71+ */
72+ protected $ persistenceManager ;
73+
6674 /**
6775 * @var string
6876 */
@@ -91,6 +99,7 @@ public function setUp(): void
9199 parent ::setUp ();
92100
93101 $ this ->objectManager = GeneralUtility::makeInstance (ObjectManager::class);
102+ $ this ->persistenceManager = GeneralUtility::makeInstance (PersistenceManager::class);
94103
95104 $ this ->baseUrl = 'http://web:8000/public/typo3temp/var/tests/functional- ' . $ this ->identifier . '/ ' ;
96105 $ this ->httpClient = new HttpClient ([
Original file line number Diff line number Diff line change 1313
1414use Kitodo \Dlf \Domain \Repository \TokenRepository ;
1515use Kitodo \Dlf \Tests \Functional \FunctionalTestCase ;
16- use TYPO3 \CMS \Extbase \Persistence \Generic \PersistenceManager ;
1716
1817class TokenRepositoryTest extends FunctionalTestCase
1918{
@@ -22,17 +21,10 @@ class TokenRepositoryTest extends FunctionalTestCase
2221 */
2322 protected $ tokenRepository ;
2423
25- /**
26- * @var PersistenceManager
27- */
28- protected $ persistenceManager ;
29-
3024 public function setUp (): void
3125 {
3226 parent ::setUp ();
3327
34- $ this ->persistenceManager = $ this ->objectManager ->get (PersistenceManager::class);
35-
3628 $ this ->tokenRepository = $ this ->initializeRepository (
3729 TokenRepository::class,
3830 20000
You can’t perform that action at this time.
0 commit comments