mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-09 12:57:41 -08:00
17 lines
395 B
PHP
17 lines
395 B
PHP
<?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');
|
|||
}
|
|||
}
|