From 86f25b2de63ea769659dce3ce7e598fa88e882d5 Mon Sep 17 00:00:00 2001 From: Kuba Turek Date: Tue, 2 Dec 2014 19:53:33 +0100 Subject: [PATCH] Add 'with' to config class method expectations --- tests/MageTest/Console/ColorsTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/MageTest/Console/ColorsTest.php b/tests/MageTest/Console/ColorsTest.php index 2655409..51cc5bc 100644 --- a/tests/MageTest/Console/ColorsTest.php +++ b/tests/MageTest/Console/ColorsTest.php @@ -18,6 +18,7 @@ class ColorsTest extends PHPUnit_Framework_TestCase $config = $this->getMock('Mage\Config'); $config->expects($this->once()) ->method('getParameter') + ->with('no-color') ->will($this->returnValue(false)); $string = 'FooBar'; @@ -37,6 +38,7 @@ class ColorsTest extends PHPUnit_Framework_TestCase $config = $this->getMock('Mage\Config'); $config->expects($this->once()) ->method('getParameter') + ->with('no-color') ->will($this->returnValue(true)); $string = 'FooBar'; @@ -56,6 +58,7 @@ class ColorsTest extends PHPUnit_Framework_TestCase $config = $this->getMock('Mage\Config'); $config->expects($this->once()) ->method('getParameter') + ->with('no-color') ->will($this->returnValue(false)); $string = 'FooBar';