Skip to content

Commit

Permalink
Updated ResponseParser so that the profession code is returned (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik van Wingerden committed Nov 29, 2016
1 parent 4d3bcd8 commit aa18c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Wb/BigRegister/SoapClient/ResponseParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function parse(ListHcpApproxResponse4 $response)
$article['end'] = new \DateTime($registration->ArticleRegistrationEndDate);
}
$article['profession'] = $this->getProfession($registration->ProfessionalGroupCode);
$article['professionCode'] = $registration->ProfessionalGroupCode;

$return['articles'][] = $article;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function testParse()
$this->assertSame('1998-02-06', $result['articles'][0]['start']->format('Y-m-d'));
$this->assertNull($result['articles'][0]['end']);
$this->assertSame('Artsen', $result['articles'][0]['profession']);
$this->assertSame('01', $result['articles'][0]['professionCode']);

// Specialisms
$this->assertArrayHasKey('specialisms', $result);
Expand Down

0 comments on commit aa18c76

Please sign in to comment.