Skip to content

Commit

Permalink
Apply fixes from StyleCI (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyvelnet committed Feb 13, 2020
1 parent 9e82414 commit af4701f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/Stubs/UserTransformerStub.php
Expand Up @@ -80,7 +80,7 @@ public function includeOrderHistories($user, \League\Fractal\ParamBag $params)
'id' => 5,
'item' => 'item 5',
'qty' => 500,
]
],
]);

list($limit, $offset) = $params->get('limit');
Expand Down
5 changes: 2 additions & 3 deletions tests/TranformationTest.php
Expand Up @@ -109,7 +109,6 @@ public function test_sub_relation_with_getting_only_one_record_from_sub_relation
$data = $service->includes('order_histories:limit(1|0)')->collection($this->getTestUserData(),
new UserTransformerStub())->getArray();


$this->assertEquals(1, count(Arr::get($data, 'data.0.order_histories.data')));
$this->assertEquals([
'data' => [
Expand All @@ -122,7 +121,7 @@ public function test_sub_relation_with_getting_only_one_record_from_sub_relation
'id' => 1,
'item' => 'item 1',
'qty' => 100,
]
],
],
],
],
Expand All @@ -135,7 +134,7 @@ public function test_sub_relation_with_getting_only_one_record_from_sub_relation
'id' => 1,
'item' => 'item 1',
'qty' => 100,
]
],
],
],
],
Expand Down

0 comments on commit af4701f

Please sign in to comment.