Skip to content

Commit 36302b7

Browse files
committed
Fixed test
1 parent 4a6d020 commit 36302b7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/WorkItemsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ public function it_should_search_through_a_list_of_work_items_using_wiql()
169169
$service->shouldReceive('request')
170170
->once()
171171
->withArgs(function ($verb, $url, $options) {
172-
return $options['json'] === [
173-
'query' => (new WIQL)->where(Field::STATE, Operator::EQUALS, 'New')->getQuery(),
174-
'$top' => 50,
175-
];
172+
return $options['query'] === ['$top' => 50] &&
173+
$options['json'] === [
174+
'query' => (new WIQL)->where(Field::STATE, Operator::EQUALS, 'New')->getQuery(),
175+
];
176176
})
177177
->andReturn(new Response(200, ['Content-Type' => 'application/json'], json_encode(['workItems' => ['id' => $this->workItem['id']]])));
178178

0 commit comments

Comments
 (0)