Skip to content
Snippets Groups Projects
Commit 705457fb authored by Benji Fisher's avatar Benji Fisher Committed by Lucas Hedding
Browse files

244: Clean up 1-line arrays in the unit test

parent 4b8cd47d
No related branches found
No related tags found
No related merge requests found
...@@ -49,11 +49,24 @@ class TransposeTest extends MigrateProcessTestCase { ...@@ -49,11 +49,24 @@ class TransposeTest extends MigrateProcessTestCase {
'expected_output' => [], 'expected_output' => [],
], ],
'image files and alt text' => [ 'image files and alt text' => [
'input' => [['2.png', '3.png', '5.png', '7.png'], ['two', 'three', 'five', 'seven']], 'input' => [
'expected_output' => [['2.png', 'two'], ['3.png', 'three'], ['5.png', 'five'], ['7.png', 'seven']], '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' => [ '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]], 'output' => [[1, 3, 5, 7], [2, 4, 6, 8]],
], ],
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment