From 4f8db0f4fee19940ee94165f3d2169f549305aa4 Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Tue, 15 May 2018 10:29:56 +0200 Subject: [PATCH] [TASK] Add additional test to ArrayUtility::getValueByPath() Verify getValueByPath() can return a sub part of a given array. Resolves: #85009 Releases: master Change-Id: Idc77809b960534d2b2694002c792f42d710ffa81 Reviewed-on: https://review.typo3.org/56963 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by: Markus Klein <markus.klein@typo3.org> Tested-by: Markus Klein <markus.klein@typo3.org> --- .../core/Tests/Unit/Utility/ArrayUtilityTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php index c953e92f43e0..c087c6a60579 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php @@ -423,6 +423,19 @@ class ArrayUtilityTest extends UnitTestCase 'foo/baz', $testObject ], + 'sub array' => [ + [ + 'foo' => [ + 'bar' => [ + 'baz' => 42, + ], + ], + ], + 'foo/bar', + [ + 'baz' => 42, + ], + ], 'enclosed path' => [ [ 'foo/bar' => [ -- GitLab