Skip to content

Commit 42e25b3

Browse files
author
Nicolas Boisvert
committed
Added unit test
1 parent 623608a commit 42e25b3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/ImportTest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ public function postImport()
5050
}
5151
];
5252
}
53+
54+
public function getSourceTables()
55+
{
56+
return [
57+
'users',
58+
'migrations',
59+
'relation_one',
60+
'products',
61+
'relation_two',
62+
'roles',
63+
'orders'
64+
];
65+
}
5366
}
5467

5568
class ImportTest extends TestCase
@@ -215,4 +228,18 @@ public function testCountImportTasks()
215228
$expected = 2;
216229
$this->assertEquals($expected, $this->extendedImport->countImportTasks());
217230
}
231+
232+
public function testGetSortedSourceTables()
233+
{
234+
$expected = [
235+
'users',
236+
'products',
237+
'roles',
238+
'orders',
239+
'relation_one',
240+
'relation_two'
241+
];
242+
243+
$this->assertEquals($expected, $this->extendedImport->getSortedSourceTables()->toArray());
244+
}
218245
}

0 commit comments

Comments
 (0)