mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	new test added for unknown color names
This commit is contained in:
		
							parent
							
								
									6e1a4d248d
								
							
						
					
					
						commit
						d53b8fd8b8
					
				@ -47,4 +47,22 @@ class ColorsTest extends PHPUnit_Framework_TestCase
 | 
			
		||||
 | 
			
		||||
        $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…
	
		Reference in New Issue
	
	Block a user