Skip to content

Commit 323dfa0

Browse files
committed
fix readability of test, no functional changes
1 parent e802d27 commit 323dfa0

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

tests/helpers/RequestParserTest.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,22 @@ public function testHasIncludePaths() {
214214
}
215215

216216
public function testGetIncludePaths_Reformatted() {
217-
$queryParameters = ['include' => 'foo,bar,baz.baf'];
217+
$paths = [
218+
'foo',
219+
'bar',
220+
'baz.baf',
221+
];
222+
$expected = [
223+
'foo' => [],
224+
'bar' => [],
225+
'baz' => [
226+
'baf' => [],
227+
],
228+
];
229+
230+
$queryParameters = ['include' => implode(',', $paths)];
218231
$requestParser = new RequestParser($selfLink='', $queryParameters);
219-
$this->assertSame(['foo' => [], 'bar' => [], 'baz' => ['baf' => []]], $requestParser->getIncludePaths());
232+
$this->assertSame($expected, $requestParser->getIncludePaths());
220233
}
221234

222235
public function testGetIncludePaths_Raw() {

0 commit comments

Comments
 (0)