From 01fe907a28f2e65a69a4c25458d589ab3529168d Mon Sep 17 00:00:00 2001 From: adamgsoc2013 Date: Thu, 16 May 2013 00:44:36 +0800 Subject: [PATCH] add test getFontsizeOptions for "em","Pt","px" unit --- test/classes/PMA_Config_test.php | 47 +++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/test/classes/PMA_Config_test.php b/test/classes/PMA_Config_test.php index b6d44a7069..808d3a3aa6 100644 --- a/test/classes/PMA_Config_test.php +++ b/test/classes/PMA_Config_test.php @@ -62,7 +62,7 @@ class PMA_ConfigTest extends PHPUnit_Framework_TestCase } public function testGetFontsizeForm() - { + { $this->assertContains( '
', PMA_Config::getFontsizeForm() ); + + //test getFontsizeOptions for "em" unit + $_COOKIE['pma_fontsize'] = "10em"; + $this->assertContains( + '