CRM-2144 Ensure consistancy with previous behavior where user emails are first then...
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 31 Mar 2018 00:23:57 +0000 (11:23 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 31 Mar 2018 21:26:22 +0000 (07:26 +1000)
commit669f45efe5fdcdc424ff10fc601657ea1adc1023
treec9e2ea7cfd5d7cde2d0acd1fc1eb99e4f22677c9
parent569281b9e973f6c475814d8b252104763cdea96f
CRM-2144 Ensure consistancy with previous behavior where user emails are first then system from emails.

Add unit test to try to verify order of emails

Fix issue where email was not being used as array key causing wrong email to be used
CRM/Core/BAO/Email.php
tests/phpunit/CRM/Core/BAO/EmailTest.php