File tree 5 files changed +5
-8
lines changed
5 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 5
5
use Coderflex \LaravelCsv \Concerns ;
6
6
use Coderflex \LaravelCsv \Jobs \ImportCsv ;
7
7
use Coderflex \LaravelCsv \Utilities \ChunkIterator ;
8
- use Illuminate \Support \Facades \Auth ;
9
8
use Illuminate \Support \Facades \Bus ;
10
9
use Illuminate \Support \MessageBag ;
11
10
use Illuminate \Validation \Validator ;
Original file line number Diff line number Diff line change 262
262
263
263
it ('creates customers records on top of csv file ' , function () {
264
264
$ this ->actingAs (User::factory ()->create ());
265
-
265
+
266
266
$ file = UploadedFile::fake ()
267
267
->createWithContent (
268
268
'customers.csv ' ,
Original file line number Diff line number Diff line change 17
17
->assertSet ('model ' , $ model )
18
18
->assertSuccessful ();
19
19
});
20
-
Original file line number Diff line number Diff line change 2
2
3
3
namespace Coderflex \LaravelCsv \Tests \Models ;
4
4
5
- use Coderflex \LaravelCsv \Concerns \HasCsvImports ;
6
5
use Coderflex \LaravelCsv \Tests \Database \Factories \CustomerFactory ;
7
6
use Illuminate \Database \Eloquent \Factories \HasFactory ;
8
7
use Illuminate \Database \Eloquent \Model ;
Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ public function getEnvironmentSetUp($app)
38
38
config ()->set ('database.default ' , 'testing ' );
39
39
40
40
$ migrations = [
41
- include __DIR__ . '/../database/migrations/create_csv_imports_table.php.stub ' ,
42
- include __DIR__ . '/Database/Migrations/create_customers_table.php ' ,
43
- include __DIR__ . '/Database/Migrations/create_users_table.php ' ,
44
- include __DIR__ . '/Database/Migrations/create_job_batches_table.php ' ,
41
+ include __DIR__ . '/../database/migrations/create_csv_imports_table.php.stub ' ,
42
+ include __DIR__ . '/Database/Migrations/create_customers_table.php ' ,
43
+ include __DIR__ . '/Database/Migrations/create_users_table.php ' ,
44
+ include __DIR__ . '/Database/Migrations/create_job_batches_table.php ' ,
45
45
];
46
46
47
47
collect ($ migrations )->each (fn ($ path ) => $ path ->up ());
You can’t perform that action at this time.
0 commit comments