diff --git a/tests/Imports/StoreImportTest.php b/tests/Imports/StoreImportTest.php index ec8e28f..3c610ed 100644 --- a/tests/Imports/StoreImportTest.php +++ b/tests/Imports/StoreImportTest.php @@ -32,6 +32,8 @@ public function it_stores_a_collection_import() // The Files fieldtype will upload this before the form gets submitted. Storage::disk('local')->put('statamic/file-uploads/123456789/import.csv', ''); + sleep(1); + $this ->actingAs(User::make()->makeSuper()->save()) ->post('/cp/utilities/importer', [ @@ -67,6 +69,8 @@ public function it_stores_a_collection_import_with_a_site() // The Files fieldtype will upload this before the form gets submitted. Storage::disk('local')->put('statamic/file-uploads/123456789/import.csv', ''); + sleep(1); + $this ->actingAs(User::make()->makeSuper()->save()) ->post('/cp/utilities/importer', [ @@ -105,6 +109,8 @@ public function it_cant_store_a_collection_import_when_the_collection_is_not_ava // The Files fieldtype will upload this before the form gets submitted. Storage::disk('local')->put('statamic/file-uploads/123456789/import.csv', ''); + sleep(1); + $this ->actingAs(User::make()->makeSuper()->save()) ->post('/cp/utilities/importer', [ @@ -135,6 +141,8 @@ public function it_cant_store_a_collection_import_without_a_site_when_multisite_ // The Files fieldtype will upload this before the form gets submitted. Storage::disk('local')->put('statamic/file-uploads/123456789/import.csv', ''); + sleep(1); + $this ->actingAs(User::make()->makeSuper()->save()) ->post('/cp/utilities/importer', [ @@ -159,6 +167,8 @@ public function it_stores_a_taxonomy_import() // The Files fieldtype will upload this before the form gets submitted. Storage::disk('local')->put('statamic/file-uploads/123456789/import.csv', ''); + sleep(1); + $this ->actingAs(User::make()->makeSuper()->save()) ->post('/cp/utilities/importer', [ @@ -187,6 +197,8 @@ public function it_stores_a_user_import() // The Files fieldtype will upload this before the form gets submitted. Storage::disk('local')->put('statamic/file-uploads/123456789/import.csv', ''); + sleep(1); + $this ->actingAs(User::make()->makeSuper()->save()) ->post('/cp/utilities/importer', [ @@ -229,6 +241,8 @@ public function validation_error_is_thrown_when_file_mime_type_is_not_allowed() // The Files fieldtype will upload this before the form gets submitted. Storage::disk('local')->put('statamic/file-uploads/123456789/import.pdf', ''); + sleep(1); + $this ->actingAs(User::make()->makeSuper()->save()) ->post('/cp/utilities/importer', [ @@ -247,6 +261,8 @@ public function validation_error_is_thrown_without_destination_type() // The Files fieldtype will upload this before the form gets submitted. Storage::disk('local')->put('statamic/file-uploads/123456789/import.csv', ''); + sleep(1); + $this ->actingAs(User::make()->makeSuper()->save()) ->post('/cp/utilities/importer', [ @@ -263,6 +279,8 @@ public function validation_error_is_thrown_without_an_import_strategy() // The Files fieldtype will upload this before the form gets submitted. Storage::disk('local')->put('statamic/file-uploads/123456789/import.csv', ''); + sleep(1); + $this ->actingAs(User::make()->makeSuper()->save()) ->post('/cp/utilities/importer', [