Updating the email plugin tests so that getSystemConfig is mocked correctly.
This commit is contained in:
parent
196a1b82b5
commit
d2c408f589
|
@ -38,17 +38,19 @@ class EmailTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
$this->mockCiBuilder = $this->getMock(
|
$this->mockCiBuilder = $this->getMock(
|
||||||
'\PHPCI\Builder',
|
'\PHPCI\Builder',
|
||||||
array('getConfig'),
|
array('getSystemConfig'),
|
||||||
array(),
|
array(),
|
||||||
"mockBuilder",
|
"mockBuilder",
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
$this->mockCiBuilder->buildPath = "/";
|
$this->mockCiBuilder->buildPath = "/";
|
||||||
$this->mockCiBuilder->expects($this->any())
|
$this->mockCiBuilder->expects($this->any())
|
||||||
->method('getConfig')
|
->method('getSystemConfig')
|
||||||
->with('email_settings')
|
->with('phpci')
|
||||||
->will($this->returnValue(array(
|
->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(
|
$this->mockMailer = $this->getMock(
|
||||||
|
|
Loading…
Reference in a new issue