From eaac43e0e878f93052b9ed9cf3398662ebc82b95 Mon Sep 17 00:00:00 2001 From: meadsteve Date: Tue, 4 Jun 2013 20:13:15 +0100 Subject: [PATCH] Updating unit test to reflect that the test will fail without any addresses defined. --- Tests/PHPCI/Plugin/Email.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/PHPCI/Plugin/Email.php b/Tests/PHPCI/Plugin/Email.php index 16588671..fdcb0a05 100644 --- a/Tests/PHPCI/Plugin/Email.php +++ b/Tests/PHPCI/Plugin/Email.php @@ -76,10 +76,11 @@ class EmailTest extends \PHPUnit_Framework_TestCase /** * @covers PHPUnit::execute */ - public function testExecute_ReturnsTrueWithoutArgs() + public function testExecute_ReturnsFalseWithoutArgs() { $returnValue = $this->testedEmailPlugin->execute(); - $expectedReturn = true; + // As no addresses will have been mailed as non are configured. + $expectedReturn = false; $this->assertEquals($expectedReturn, $returnValue); }