[TASK] Streamline autoloading of test classes in extbase 41/62341/4
authorAlexander Schnitzler <git@alexanderschnitzler.de>
Mon, 18 Nov 2019 13:34:17 +0000 (14:34 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 25 Nov 2019 20:20:33 +0000 (21:20 +0100)
- Adjust namespaces of classes according to PSR-4
- Add a classmap for test fixtures

Releases: master
Resolves: #89706
Change-Id: Iefd73f8039eb3db4de419ecaab13a18f6abb23e2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62341
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Jörg Bösche <typo3@joergboesche.de>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
composer.json
typo3/sysext/extbase/Tests/Functional/Persistence/ImplementationClassNameTest.php
typo3/sysext/extbase/composer.json

index 60ff4cc..5d5533e 100644 (file)
                },
                "classmap": [
                        "typo3/sysext/core/Tests/Functional/Fixtures/",
-                       "typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/"
+                       "typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/",
+                       "typo3/sysext/extbase/Tests/Functional/Fixtures/"
                ]
        }
 }
index b6695f2..d5c48d0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 declare(strict_types = 1);
-namespace TYPO3\CMS\Extbase\Tests\Functional;
+namespace TYPO3\CMS\Extbase\Tests\Functional\Persistence;
 
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Extbase\Object\ObjectManager;
index 5b34b4f..fd6df62 100644 (file)
@@ -50,6 +50,9 @@
                "psr-4": {
                        "TYPO3\\CMS\\Extbase\\Tests\\": "Tests/"
                },
-               "classmap": ["Tests/Unit/Object/Container/Fixtures/"]
+               "classmap": [
+                       "Tests/Unit/Object/Container/Fixtures/",
+                       "Tests/Functional/Fixtures/"
+               ]
        }
 }