Updating the email plugin tests so that getSystemConfig is mocked correctly.

This commit is contained in:
meadsteve 2013-06-01 13:31:15 +01:00
parent 196a1b82b5
commit d2c408f589

View file

@ -38,17 +38,19 @@ class EmailTest extends \PHPUnit_Framework_TestCase
{
$this->mockCiBuilder = $this->getMock(
'\PHPCI\Builder',
array('getConfig'),
array('getSystemConfig'),
array(),
"mockBuilder",
false
);
$this->mockCiBuilder->buildPath = "/";
$this->mockCiBuilder->expects($this->any())
->method('getConfig')
->with('email_settings')
->method('getSystemConfig')
->with('phpci')
->will($this->returnValue(array(
'from_address' => "test-from-address@example.com"
'email_settings' => array(
'from_address' => "test-from-address@example.com"
)
)));
$this->mockMailer = $this->getMock(