Commit 705457fb authored by benjifisher's avatar benjifisher Committed by Lucas Hedding
Browse files

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

parent 4b8cd47d
......@@ -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]],
],
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment