Skip to content

Commit

Permalink
[TASK] Add additional test to ArrayUtility::getValueByPath()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lolli42 authored and liayn committed May 15, 2018
1 parent 6351006 commit 4f8db0f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php
Expand Up @@ -423,6 +423,19 @@ public function getValueByPathValidDataProvider()
'foo/baz',
$testObject
],
'sub array' => [
[
'foo' => [
'bar' => [
'baz' => 42,
],
],
],
'foo/bar',
[
'baz' => 42,
],
],
'enclosed path' => [
[
'foo/bar' => [
Expand Down

0 comments on commit 4f8db0f

Please sign in to comment.