Skip to content

Commit

Permalink
cq fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LaravelFreelancerNL committed Sep 24, 2021
1 parent 639649a commit f8f76ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Clauses/CollectClause.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function compile(QueryBuilder $queryBuilder): string
$group[0],
'Variable'
);
$queryBuilder->registerVariable($this->groups[$key][0] );
$queryBuilder->registerVariable($this->groups[$key][0]);

$this->groups[$key][1] = $queryBuilder->normalizeArgument(
$group[1],
Expand Down
6 changes: 5 additions & 1 deletion tests/Unit/AQL/QueryClausesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ public function testCollectMultipleClause()
->collect([['hometown', 'u.city'], ['surname', 'u.surname']])
->return(['hometown', 'surname'])
->get();
self::assertEquals('FOR u IN Users COLLECT hometown = u.city, surname = u.surname RETURN [hometown,surname]', $result->query);
self::assertEquals(
'FOR u IN Users COLLECT hometown = u.city, surname = u.surname'
. ' RETURN [hometown,surname]',
$result->query
);
}

public function testIntoClause()
Expand Down

0 comments on commit f8f76ec

Please sign in to comment.