chore: update dependencies for Laravel 9 (#6098)
This commit is contained in:
@@ -150,7 +150,9 @@ END:VCARD
|
||||
/** @test */
|
||||
public function it_throws_an_exception_if_file_doesnt_exist()
|
||||
{
|
||||
Storage::fake('public');
|
||||
Storage::fake('public', [
|
||||
'throw' => true,
|
||||
]);
|
||||
$importJob = factory(ImportJob::class)->create([
|
||||
'filename' => 'testfile.vcf',
|
||||
]);
|
||||
@@ -181,21 +183,6 @@ END:VCARD
|
||||
Storage::disk('public')->assertMissing($importJob->filename);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_throws_an_exception_if_file_cant_be_deleted()
|
||||
{
|
||||
Storage::fake('public');
|
||||
$importJob = factory(ImportJob::class)->create([
|
||||
'filename' => 'testfile.vcf',
|
||||
]);
|
||||
|
||||
$this->invokePrivateMethod($importJob, 'deletePhysicalFile');
|
||||
$this->assertEquals(
|
||||
trans('settings.import_vcard_file_not_found'),
|
||||
$importJob->failed_reason
|
||||
);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_calculates_how_many_entries_there_are_and_populate_the_entries_array()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user