Skip to content

A free open source IT asset/license management system

Added modal tests

snipe6d74053ca393
diff --git a/tests/Feature/Modals/Ui/ShowModalsTest.php b/tests/Feature/Modals/Ui/ShowModalsTest.php
new file mode 100644
index 0000000000..308460999f
--- /dev/null
+++ b/tests/Feature/Modals/Ui/ShowModalsTest.php
@@ -0,0 +1,60 @@
+<?php
+
+namespace Tests\Feature\Modals\Ui;
+
+use App\Models\User;
+use Tests\TestCase;
+
+class ShowModalsTest extends TestCase
+{
+ public function testUserModalRenders()
+ {
+ $this->actingAs(User::factory()->createUsers()->create())
+ ->get('modals/user')
+ ->assertOk();
+ }
+
+ public function testDepartmentModalRenders()
+ {
+ $this->actingAs(User::factory()->superuser()->create())
+ ->get('modals/model')
+ ->assertOk();
+ }
+
+ public function testStatusLabelModalRenders()
+ {
+ $this->actingAs(User::factory()->superuser()->create())
+ ->get('modals/statuslabel')
+ ->assertOk();
+ }
+
+ public function testLocationModalRenders()
+ {
+ $this->actingAs(User::factory()->superuser()->create())
+ ->get('modals/location')
+ ->assertOk();
+ }
+
+ public function testCategoryModalRenders()
+ {
+ $this->actingAs(User::factory()->superuser()->create())
+ ->get('modals/category')
+ ->assertOk();
+ }
+
+ public function testManufacturerModalRenders()
+ {
+ $this->actingAs(User::factory()->superuser()->create())
+ ->get('modals/manufacturer')
+ ->assertOk();
+ }
+
+ public function testSupplierModalRenders()
+ {
+ $this->actingAs(User::factory()->superuser()->create())
+ ->get('modals/supplier')
+ ->assertOk();
+ }
+
+
+}