public function test_mailer_should_find_from_address() { $this->_helper->injectConfigValues(array('amazon' => null, 'mailer' => array('fromAddress' => '*****@*****.**'))); $mailer = new Garp_Mailer(); $this->assertEquals($mailer->getFromAddress(), '*****@*****.**'); $this->_helper->injectConfigValues(array('amazon' => array('ses' => array('accessKey' => '1234567890', 'fromAddress' => '*****@*****.**')), 'mailer' => null)); $mailer = new Garp_Mailer(); $this->assertEquals($mailer->getFromAddress(), '*****@*****.**'); }