Skip to content

A free open source IT asset/license management system

change namesspaces and use create instead of make

Godfrey M881cde4d9867
diff --git a/tests/Feature/Checkins/Api/LicenseCheckInTest.php b/tests/Feature/Checkins/Api/LicenseCheckInTest.php
index a8aabafb5c..385933655c 100644
--- a/tests/Feature/Checkins/Api/LicenseCheckInTest.php
+++ b/tests/Feature/Checkins/Api/LicenseCheckInTest.php
@@ -1,5 +1,5 @@
<?php
-namespace Feature\Checkins\Api;
+namespace Tests\Feature\Checkins\Api;
use App\Models\License;
use App\Models\LicenseSeat;
@@ -9,7 +9,7 @@ use Tests\TestCase;
class LicenseCheckInTest extends TestCase {
public function testLicenseCheckin()
{
- $authUser = User::factory()->superuser()->make();
+ $authUser = User::factory()->superuser()->create();
$this->actingAsForApi($authUser);
$license = License::factory()->create();
diff --git a/tests/Feature/Checkouts/Api/LicenseCheckOutTest.php b/tests/Feature/Checkouts/Api/LicenseCheckOutTest.php
index 70364ca428..7a069b7d28 100644
--- a/tests/Feature/Checkouts/Api/LicenseCheckOutTest.php
+++ b/tests/Feature/Checkouts/Api/LicenseCheckOutTest.php
@@ -1,5 +1,5 @@
<?php
-namespace Feature\Checkouts\Api;
+namespace Tests\Feature\Checkouts\Api;
use App\Models\License;
use App\Models\LicenseSeat;
@@ -9,7 +9,7 @@ use Tests\TestCase;
class LicenseCheckOutTest extends TestCase {
public function testLicenseCheckout()
{
- $authUser = User::factory()->superuser()->make();
+ $authUser = User::factory()->superuser()->create();
$this->actingAsForApi($authUser);
$license = License::factory()->create();