Skip to content

Commit

Permalink
Tests style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jampire committed Apr 7, 2023
1 parent 827f958 commit 6a1e5f6
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions tests/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2283,27 +2283,17 @@ public function __construct(
it('can fetch lazy union data', function () {
$data = UnionData::from(1);

expect($data->id)
->toBe(1)
->and($data->simple->string)
->toBe('A')
->and($data->dataCollection->toCollection()->pluck('string')->toArray())
->toBe(['B', 'C'])
->and($data->fakeModel->string)
->toBe('lazy')
;
expect($data->id)->toBe(1);
expect($data->simple->string)->toBe('A');
expect($data->dataCollection->toCollection()->pluck('string')->toArray())->toBe(['B', 'C']);
expect($data->fakeModel->string)->toBe('lazy');
});

it('can fetch non-lazy union data', function () {
$data = UnionData::from('A');

expect($data->id)
->toBe(1)
->and($data->simple->string)
->toBe('A')
->and($data->dataCollection->toCollection()->pluck('string')->toArray())
->toBe(['B', 'C'])
->and($data->fakeModel->string)
->toBe('non-lazy')
;
expect($data->id)->toBe(1);
expect($data->simple->string)->toBe('A');
expect($data->dataCollection->toCollection()->pluck('string')->toArray())->toBe(['B', 'C']);
expect($data->fakeModel->string)->toBe('non-lazy');
});

0 comments on commit 6a1e5f6

Please sign in to comment.