tests: fix remaining failures

This commit is contained in:
Matthew Penner 2023-01-12 13:19:01 -07:00
parent f45eac623c
commit b59e1da860
No known key found for this signature in database
5 changed files with 15 additions and 61 deletions

View file

@ -55,7 +55,7 @@ class NestControllerTest extends ApplicationApiIntegrationTestCase
foreach ($nests as $nest) {
$response->assertJsonFragment([
'object' => 'nest',
'attributes' => $this->getTransformer(NestTransformer::class)->transform($nest),
'attributes' => (new NestTransformer())->transform($nest),
]);
}
}
@ -76,7 +76,7 @@ class NestControllerTest extends ApplicationApiIntegrationTestCase
$response->assertJson([
'object' => 'nest',
'attributes' => $this->getTransformer(NestTransformer::class)->transform($nest),
'attributes' => (new NestTransformer())->transform($nest),
]);
}