chore: code style

This commit is contained in:
hackerESQ
2025-01-28 17:14:49 -06:00
parent c4736fae70
commit e8ef0921ad
123 changed files with 1051 additions and 1197 deletions
+1 -10
View File
@@ -2,17 +2,14 @@
namespace Tests;
use Tests\TestCase;
use App\Models\User;
use App\Models\Portfolio;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
class PortfoliosTest extends TestCase
{
use RefreshDatabase;
/**
*/
public function test_owner_is_assigned_to_portfolio_on_create(): void
{
$this->actingAs($user = User::factory()->create());
@@ -22,8 +19,6 @@ class PortfoliosTest extends TestCase
$this->assertEquals($user->id, $portfolio->owner_id);
}
/**
*/
public function test_owner_can_be_forced_on_create(): void
{
$this->actingAs($user = User::factory()->create());
@@ -35,8 +30,6 @@ class PortfoliosTest extends TestCase
$this->assertEquals($user->id, $portfolio->owner_id);
}
/**
*/
public function test_owner_cannot_be_changed_on_update(): void
{
$this->actingAs($owner = User::factory()->create());
@@ -49,6 +42,4 @@ class PortfoliosTest extends TestCase
$this->assertEquals($owner->id, $portfolio->owner_id);
}
}