3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-10 18:45:51 +00:00
Files
snipe-it/tests/Feature/Importing/Api/GeneralImportTest.php
Marcus Moore 8035326675 Add test
2024-10-03 16:53:19 -07:00

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');
}
}