fixed TransfersTest import step..
This commit is contained in:
parent
468288f5b1
commit
e0878c0459
@ -81,8 +81,8 @@ class TransfersTest extends FeatureTestCase
|
||||
\Excel::fake();
|
||||
|
||||
$this->loginAs()
|
||||
->get(route('transfers.export'))
|
||||
->assertStatus(200);
|
||||
->get(route('transfers.export'))
|
||||
->assertStatus(200);
|
||||
|
||||
\Excel::assertDownloaded(
|
||||
\Str::filename(trans_choice('general.transfers', 2)) . '.xlsx',
|
||||
@ -101,10 +101,10 @@ class TransfersTest extends FeatureTestCase
|
||||
\Excel::fake();
|
||||
|
||||
$this->loginAs()
|
||||
->post(
|
||||
route('bulk-actions.action', ['group' => 'banking', 'type' => 'transfers']),
|
||||
['handle' => 'export', 'selected' => [$transfers->random()->id]]
|
||||
)
|
||||
->post(
|
||||
route('bulk-actions.action', ['group' => 'banking', 'type' => 'transfers']),
|
||||
['handle' => 'export', 'selected' => [$transfers->random()->id]]
|
||||
)
|
||||
->assertStatus(200);
|
||||
|
||||
\Excel::assertDownloaded(
|
||||
@ -120,16 +120,16 @@ class TransfersTest extends FeatureTestCase
|
||||
\Excel::fake();
|
||||
|
||||
$this->loginAs()
|
||||
->post(
|
||||
route('transfers.import'),
|
||||
[
|
||||
'import' => UploadedFile::fake()->createWithContent(
|
||||
'transfers.xlsx',
|
||||
File::get(public_path('files/import/transfers.xlsx'))
|
||||
),
|
||||
]
|
||||
)
|
||||
->assertStatus(302);
|
||||
->post(
|
||||
route('transfers.import'),
|
||||
[
|
||||
'import' => UploadedFile::fake()->createWithContent(
|
||||
'transfers.xlsx',
|
||||
File::get(public_path('files/import/transfers.xlsx'))
|
||||
),
|
||||
]
|
||||
)
|
||||
->assertStatus(200);
|
||||
|
||||
\Excel::assertImported('transfers.xlsx');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user