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