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()
50
50
}
51
51
];
52
52
}
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
+ }
53
66
}
54
67
55
68
class ImportTest extends TestCase
@@ -215,4 +228,18 @@ public function testCountImportTasks()
215
228
$ expected = 2 ;
216
229
$ this ->assertEquals ($ expected , $ this ->extendedImport ->countImportTasks ());
217
230
}
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
+ }
218
245
}
You can’t perform that action at this time.
0 commit comments