From d2c408f5897fd90b793e234cfbcc1f29731ca7b3 Mon Sep 17 00:00:00 2001 From: meadsteve Date: Sat, 1 Jun 2013 13:31:15 +0100 Subject: [PATCH] Updating the email plugin tests so that getSystemConfig is mocked correctly. --- Tests/PHPCI/Plugin/Email.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Tests/PHPCI/Plugin/Email.php b/Tests/PHPCI/Plugin/Email.php index 9e8052be..16588671 100644 --- a/Tests/PHPCI/Plugin/Email.php +++ b/Tests/PHPCI/Plugin/Email.php @@ -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(