diff --git a/tests/Feature/AssetModels/Ui/AssetModelsTest.php b/tests/Feature/AssetModels/Ui/AssetModelsTest.php new file mode 100644 index 000000000000..bb60a25fe5f4 --- /dev/null +++ b/tests/Feature/AssetModels/Ui/AssetModelsTest.php @@ -0,0 +1,38 @@ +actingAs(User::factory()->superuser()->create()) + ->get(route('models.index')) + ->assertStatus(200); + + } + + public function testUserCanCreateAssetModels() + { + $this->actingAs(User::factory()->superuser()->create()) + ->post(route('models.index'), [ + 'name' => 'Test Model', + 'category_id' => Category::factory()->create()->id + ]) + ->assertStatus(302) + ->assertRedirect(route('models.index')); + } + + +}