Skip to content

Commit ad8815a

Browse files
committed
nitpick
1 parent 906b58f commit ad8815a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All Notable changes to `laravel-fractal` will be documented in this file
44

5+
## 1.7.2 - 2015-11-09
6+
7+
### Fixed
8+
- Fix for add multiple includes in one go.
9+
510
## 1.7.1 - 2015-10-26
611

712
### Fixed

tests/Integration/IncludesTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,18 @@ public function it_can_handle_multiple_includes_at_once()
6666
{
6767
$array = $this->fractal
6868
->collection($this->testBooks, new TestTransformer())
69-
->parseIncludes('characters,publisher')
69+
->parseIncludes('characters, publisher')
7070
->toArray();
7171

7272
$expectedArray = ['data' => [
73-
['id' => 1, 'author' => 'Philip K Dick', 'characters' => ['data' => ['Death', 'Hex']], 'publisher' => ['data' => ['Elephant books']]],
74-
['id' => 2, 'author' => 'George R. R. Satan', 'characters' => ['data' => ['Ned Stark', 'Tywin Lannister']], 'publisher' => ['data' => ['Bloody Fantasy inc.']]],
73+
['id' => 1, 'author' => 'Philip K Dick',
74+
'characters' => ['data' => ['Death', 'Hex']],
75+
'publisher' => ['data' => ['Elephant books']],
76+
],
77+
['id' => 2, 'author' => 'George R. R. Satan',
78+
'characters' => ['data' => ['Ned Stark', 'Tywin Lannister']],
79+
'publisher' => ['data' => ['Bloody Fantasy inc.']],
80+
],
7581
]];
7682

7783
$this->assertEquals($expectedArray, $array);

0 commit comments

Comments
 (0)