mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-19 11:35:39 +00:00
Add test
This commit is contained in:
16
tests/Feature/Importing/Api/GeneralImportTest.php
Normal file
16
tests/Feature/Importing/Api/GeneralImportTest.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\Importing\Api;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
class GeneralImportTest extends ImportDataTestCase
|
||||
{
|
||||
public function testRequiresExistingImport()
|
||||
{
|
||||
$this->actingAsForApi(User::factory()->canImport()->create());
|
||||
|
||||
$this->importFileResponse(['import' => 9999, 'import-type' => 'accessory'])
|
||||
->assertStatusMessageIs('import-errors');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user