formatting, juiste use voor UpdateDynamicRequest
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\Dynamic;
|
||||
use App\Models\Ledger;
|
||||
use App\Models\Mutation;
|
||||
use App\Models\User;
|
||||
|
||||
test('authenticated participant can view another participant detail page in dynamic', function () {
|
||||
$owner = User::factory()->create();
|
||||
$participant = User::factory()->create();
|
||||
$dynamic = Dynamic::factory()->create();
|
||||
|
||||
|
||||
$dynamic->participants()->attach($owner->id, ['role' => 'owner', 'display_name' => 'The Boss']);
|
||||
$dynamic->participants()->attach($participant->id, ['role' => 'participant']);
|
||||
|
||||
@@ -34,7 +34,7 @@ test('non-participant cannot view participant detail page in dynamic', function
|
||||
$participant = User::factory()->create();
|
||||
$outsider = User::factory()->create();
|
||||
$dynamic = Dynamic::factory()->create();
|
||||
|
||||
|
||||
$dynamic->participants()->attach($owner->id, ['role' => 'owner']);
|
||||
$dynamic->participants()->attach($participant->id, ['role' => 'participant']);
|
||||
|
||||
@@ -50,7 +50,7 @@ test('participant detail page displays their recent mutations in dynamic', funct
|
||||
$participant = User::factory()->create();
|
||||
$dynamic = Dynamic::factory()->create();
|
||||
$ledger = Ledger::factory()->create(['dynamic_id' => $dynamic->id]);
|
||||
|
||||
|
||||
$dynamic->participants()->attach($owner->id, ['role' => 'owner']);
|
||||
$dynamic->participants()->attach($participant->id, ['role' => 'participant', 'display_name' => 'Bitch']);
|
||||
|
||||
@@ -61,7 +61,7 @@ test('participant detail page displays their recent mutations in dynamic', funct
|
||||
'amount' => 10,
|
||||
'description' => 'Chore 1',
|
||||
]);
|
||||
|
||||
|
||||
$mutation2 = Mutation::factory()->create([
|
||||
'ledger_id' => $ledger->id,
|
||||
'user_id' => $participant->id,
|
||||
|
||||
Reference in New Issue
Block a user