[TASK] Re-add tests for renumberKeys
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Utility / ArrayUtilityTest.php
index 7b041a8..b07845c 100644 (file)
@@ -1492,6 +1492,16 @@ class ArrayUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                );
        }
 
                );
        }
 
+       /**
+        * @test
+        * @param array $inputArray
+        * @param array $expected
+        * @dataProvider renumberKeysToAvoidLeapsIfKeysAreAllNumericDataProvider
+        */
+       public function renumberKeysToAvoidLeapsIfKeysAreAllNumericReturnsExpectedOrder(array $inputArray, array $expected) {
+               $this->assertEquals($expected, ArrayUtility::renumberKeysToAvoidLeapsIfKeysAreAllNumeric($inputArray));
+       }
+
        /**
         * @return array
         */
        /**
         * @return array
         */