From 8694805eba3c7a13207f4603c33f201d9c013129 Mon Sep 17 00:00:00 2001 From: Kuba Turek Date: Tue, 2 Dec 2014 19:55:46 +0100 Subject: [PATCH] Move colour config parameter to class property --- tests/MageTest/Console/ColorsTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/MageTest/Console/ColorsTest.php b/tests/MageTest/Console/ColorsTest.php index 2aaf262..1830cc7 100644 --- a/tests/MageTest/Console/ColorsTest.php +++ b/tests/MageTest/Console/ColorsTest.php @@ -11,6 +11,7 @@ use PHPUnit_Framework_TestCase; */ class ColorsTest extends PHPUnit_Framework_TestCase { + protected $noColorParameter = "no-color"; /** * @group 159 * @covers ::color @@ -20,7 +21,7 @@ class ColorsTest extends PHPUnit_Framework_TestCase $config = $this->getMock('Mage\Config'); $config->expects($this->once()) ->method('getParameter') - ->with('no-color') + ->with($this->noColorParameter) ->will($this->returnValue(false)); $string = 'FooBar'; @@ -41,7 +42,7 @@ class ColorsTest extends PHPUnit_Framework_TestCase $config = $this->getMock('Mage\Config'); $config->expects($this->once()) ->method('getParameter') - ->with('no-color') + ->with($this->noColorParameter) ->will($this->returnValue(true)); $string = 'FooBar'; @@ -62,7 +63,7 @@ class ColorsTest extends PHPUnit_Framework_TestCase $config = $this->getMock('Mage\Config'); $config->expects($this->once()) ->method('getParameter') - ->with('no-color') + ->with($this->noColorParameter) ->will($this->returnValue(false)); $string = 'FooBar';