Closed (fixed)
Project:
IMP
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
17 Nov 2013 at 05:57 UTC
Updated:
16 Dec 2013 at 13:50 UTC
Jump to comment: Most recent, Most recent file
Line number 355: public function getRowByDestination(array $destination_ids) {
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2137479-4-test-getRowByDestination.patch | 1.96 KB | jessehs |
| #2 | 2137479-2-phpunit-for-getRowByDestination.patch | 1.67 KB | jessehs |
Comments
Comment #1
jessehsComment #2
jessehsThis checks whether the getRowByDestination method is successful. Does it also need to check if it fails when an invalid value is requested?
Comment #3
mikeryanAs with getRowBySource(), I'd like to see a test with a non-existent destination ID.
Comment #4
jessehsThis patch adds a check for a non-existent destination id, and asserts that it is false.
Comment #5
jessehsComment #6
chx commentedI will let Mike do this; but when you do, please quickfix + $this->assertSame(false, $result_row); to FALSE.
Comment #7
mikeryanActually, I changed assertSame(false, ... to assertFalse.
Committed, thanks!