Skip to content

Commit 41a5734

Browse files
committed
#227 BUGFIX: board issues were uncorrectly extracted!
1 parent 145b8fb commit 41a5734

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Board/BoardService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public function getBoard($id, $paramArray = [])
4646

4747
public function getBoardIssues($id, $paramArray = [])
4848
{
49-
$json = $this->exec($this->uri.'/'.$id.$this->toHttpQueryParameter($paramArray), null);
49+
$json = $this->exec($this->uri.'/'.$id.'/issue'.$this->toHttpQueryParameter($paramArray), null);
5050
$board = $this->json_mapper->mapArray(
51-
json_decode($json), new \ArrayObject(), Issue::class
51+
json_decode($json)->issues, new \ArrayObject(), Issue::class
5252
);
5353

5454
return $board;

tests/BoardTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function testGetBoardIssues()
5555
$this->assertInstanceOf(ArrayObject::class, $board_issues, 'We receive a board issue list.');
5656
$first_issue = reset($board_issues);
5757
$this->assertInstanceOf(Issue::class, $first_issue);
58+
$this->assertNotEmpty($first_issue->id);
5859
}
5960

6061
}

0 commit comments

Comments
 (0)