Skip to content

Commit 8035326

Browse files
committed
Add test
1 parent dfdd85a commit 8035326

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Tests\Feature\Importing\Api;
4+
5+
use App\Models\User;
6+
7+
class GeneralImportTest extends ImportDataTestCase
8+
{
9+
public function testRequiresExistingImport()
10+
{
11+
$this->actingAsForApi(User::factory()->canImport()->create());
12+
13+
$this->importFileResponse(['import' => 9999, 'import-type' => 'accessory'])
14+
->assertStatusMessageIs('import-errors');
15+
}
16+
}

0 commit comments

Comments
 (0)