Browse Source

new test added for unknown color names

1.0
Claudio Zizza 10 years ago
parent
commit
d53b8fd8b8
  1. 18
      tests/MageTest/Console/ColorsTest.php

18
tests/MageTest/Console/ColorsTest.php

@ -47,4 +47,22 @@ class ColorsTest extends PHPUnit_Framework_TestCase
$this->assertSame($expected, $result); $this->assertSame($expected, $result);
} }
/**
* @group 159
*/
public function testColorUnknownColorName()
{
$config = $this->getMock('Mage\Config');
$config->expects($this->once())
->method('getParameter')
->will($this->returnValue(false));
$string = '<foo>FooBar</foo>';
// Method need to be non static in the future
$result = Colors::color($string, $config);
$this->assertSame($string, $result);
}
} }

Loading…
Cancel
Save