Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Added getDisplayName to Person entity #186

Conversation

knasher
Copy link
Contributor

@knasher knasher commented Apr 22, 2015

No description provided.

$this->assertEquals($expectedFirst, $this->person->getFirstname());
$this->assertEquals($expectedMiddle, $this->person->getMiddlename());
$this->assertEquals($expectedSurname, $this->person->getSurname());
$this->assertEquals($expectedOtherNames, $this->person->getOtherNames());
$this->assertEquals($expectedDisplay, $this->person->getDisplayName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a bit picky and not worth it, but should we be testing cases where there is no title, firstname and/or surname? e.g. Mr Saunders. (no firstname)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Further unit test added

@rs-saunders
Copy link
Contributor

Unit tests pass
Time: 645 ms, Memory: 36.00Mb
OK (705 tests, 21667 assertions)

@rs-saunders
Copy link
Contributor

Unit tests pass
Time: 1.2 seconds, Memory: 36.25Mb
OK (708 tests, 21670 assertions)

rs-saunders added a commit that referenced this pull request Apr 24, 2015
…_Name_To_Title_Of_Each_Outbound_Letter

Added getDisplayName to Person entity
@rs-saunders rs-saunders merged commit 8586003 into master Apr 24, 2015
@rs-saunders rs-saunders deleted the SDV-1136_Add_Recipient_Name_To_Title_Of_Each_Outbound_Letter branch April 24, 2015 08:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants