Line number 355: public function getRowByDestination(array $destination_ids) {

Comments

jessehs’s picture

Assigned: Unassigned » jessehs
jessehs’s picture

Status: Active » Needs review
StatusFileSize
new1.67 KB

This checks whether the getRowByDestination method is successful. Does it also need to check if it fails when an invalid value is requested?

mikeryan’s picture

Status: Needs review » Needs work

As with getRowBySource(), I'd like to see a test with a non-existent destination ID.

jessehs’s picture

StatusFileSize
new1.96 KB

This patch adds a check for a non-existent destination id, and asserts that it is false.

jessehs’s picture

Status: Needs work » Needs review
chx’s picture

I will let Mike do this; but when you do, please quickfix + $this->assertSame(false, $result_row); to FALSE.

mikeryan’s picture

Status: Needs review » Fixed

Actually, I changed assertSame(false, ... to assertFalse.

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.