Skip to content
Snippets Groups Projects
Commit 16545e59 authored by Anja Leichsenring's avatar Anja Leichsenring Committed by Thomas Maroschik
Browse files

[BUGFIX] Tests: Incomplete Mocking in ext:extensionmanager

After the removal of GLOBALS initialisation the extension raises
warnings in unittests.

Change-Id: I450932b1de1852302e4ae9861b250c5721f6032e
Resolves: #56930
Related: #51436
Releases: 6.2
Reviewed-on: https://review.typo3.org/28412
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
parent 34cc8f6c
Branches
Tags
No related merge requests found
......@@ -63,6 +63,10 @@ class ConfigurationItemRepositoryTest extends \TYPO3\CMS\Extbase\Tests\Unit\Base
* @test
*/
public function getConfigurationArrayFromExtensionKeyReturnsSortedHierarchicArray() {
// due to a static call to LocalisationUtility, that ends up in RootlineUtility, we need to provide this
// otherwise a warning is raised
// 'Invalid argument supplied for foreach()' in typo3/sysext/core/Classes/Utility/RootlineUtility.php:263
$GLOBALS['TCA']['pages']['columns'] = array();
$flatConfigurationItemArray = array(
'item1' => array(
'cat' => 'basic',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment