Skip to content

Commit

Permalink
Code formatting & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaail committed Nov 20, 2024
1 parent 8f3845c commit 915bd7b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/Unit/Models/Sortable/BoardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@
});

it('Assign a sort value is segregatd by Bucket', function () {
$buckets = Bucket::factory(2)
[$firstBucket, $secondBucket] = Bucket::factory(2)
->for(Board::factory(), relationship: 'board')
->create();

[$firstBucket, $secondBucket] = $buckets;

// Create 1st Card for 1st Bucket with sort = 8
// Create 1st Card for 1st Bucket with sort = 3
Card::withoutEvents(function () use ($firstBucket) {
Card::factory(1)
->for($firstBucket, relationship: 'bucket')
Expand All @@ -66,7 +64,7 @@
->create(['sort' => 9]);
});

// Create 1 Card for 2nd Bucket
// Create 1 Card for 2nd Bucket with auto sort value.
Card::factory(1)
->for($firstBucket, relationship: 'bucket')
->create();
Expand Down

0 comments on commit 915bd7b

Please sign in to comment.