From 705457fb392a216fa160d4a91f9ea6562a126f23 Mon Sep 17 00:00:00 2001 From: Benji Fisher <benji@FisherFam.org> Date: Thu, 10 Dec 2020 09:52:56 -0500 Subject: [PATCH] 244: Clean up 1-line arrays in the unit test --- tests/src/Unit/process/TransposeTest.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tests/src/Unit/process/TransposeTest.php b/tests/src/Unit/process/TransposeTest.php index 19bde9b7..30f08e26 100644 --- a/tests/src/Unit/process/TransposeTest.php +++ b/tests/src/Unit/process/TransposeTest.php @@ -49,11 +49,24 @@ class TransposeTest extends MigrateProcessTestCase { 'expected_output' => [], ], 'image files and alt text' => [ - 'input' => [['2.png', '3.png', '5.png', '7.png'], ['two', 'three', 'five', 'seven']], - 'expected_output' => [['2.png', 'two'], ['3.png', 'three'], ['5.png', 'five'], ['7.png', 'seven']], + 'input' => [ + 'src' => ['2.png', '3.png', '5.png', '7.png'], + 'alt' => ['two', 'three', 'five', 'seven'], + ], + 'expected_output' => [ + ['2.png', 'two'], + ['3.png', 'three'], + ['5.png', 'five'], + ['7.png', 'seven'], + ], ], 'indexed arrays' => [ - 'input' => [['a' => 1, 'b' => 2], ['c' => 3, 'd' => 4], ['e' => 5, 'f' => 6], ['g' => 7, 'h' => 8]], + 'input' => [ + ['a' => 1, 'b' => 2], + ['c' => 3, 'd' => 4], + ['e' => 5, 'f' => 6], + ['g' => 7, 'h' => 8], + ], 'output' => [[1, 3, 5, 7], [2, 4, 6, 8]], ], ]; -- GitLab