Skip to content

Commit

Permalink
test: update expectation to match the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Jun 12, 2024
1 parent da1534c commit c9087e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Unit/Traits/ResponseTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,21 @@ public function testTransform(): void

public function testCanInclude(): void
{
$includes = ['parent'];
$include = 'parent';

$result = $this->trait
->withMeta($this->metadata)
->transform(
data: $this->user,
transformerName: $this->transformer,
includes: $includes,
includes: [$include],
meta: $this->customMetadata,
);

$this->assertArrayHasKey('parent', $result['data']);
$this->assertNotNull($result['data']['parent']);
$this->assertMetadata($result);
$this->assertContains($includes, $result['meta']['include']);
$this->assertContains($include, $result['meta']['include']);
}

public static function resourceKeyProvider(): array
Expand Down

0 comments on commit c9087e5

Please sign in to comment.