File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff 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
5568class 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}
You can’t perform that action at this time.
0 commit comments