mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 23:19:42 -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');
|
|
}
|
|
}
|