Remove unnecessary function
This commit is contained in:
parent
bbf2f33c5e
commit
fdd90b3be7
37 changed files with 92 additions and 136 deletions
|
@ -140,7 +140,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
|||
'data' => [
|
||||
[
|
||||
'object' => 'server',
|
||||
'attributes' => $this->getTransformer(ServerTransformer::class)->transform($server),
|
||||
'attributes' => (new ServerTransformer())->transform($server),
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
@ -238,7 +238,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
|||
$user = User::where('username', 'testuser')->first();
|
||||
$response->assertJson([
|
||||
'object' => 'user',
|
||||
'attributes' => $this->getTransformer(UserTransformer::class)->transform($user),
|
||||
'attributes' => (new UserTransformer())->transform($user),
|
||||
'meta' => [
|
||||
'resource' => route('api.application.users.view', $user->id),
|
||||
],
|
||||
|
@ -268,7 +268,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
|||
|
||||
$response->assertJson([
|
||||
'object' => 'user',
|
||||
'attributes' => $this->getTransformer(UserTransformer::class)->transform($user),
|
||||
'attributes' => (new UserTransformer())->transform($user),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue