diff options
Diffstat (limited to 'test/libraries/PMA_central_columns_test.php')
-rw-r--r-- | test/libraries/PMA_central_columns_test.php | 61 |
1 files changed, 1 insertions, 60 deletions
diff --git a/test/libraries/PMA_central_columns_test.php b/test/libraries/PMA_central_columns_test.php index a992ed7594..d540ab32d1 100644 --- a/test/libraries/PMA_central_columns_test.php +++ b/test/libraries/PMA_central_columns_test.php @@ -18,7 +18,6 @@ require_once 'libraries/relation.lib.php'; require_once 'libraries/Message.class.php'; require_once 'libraries/url_generating.lib.php'; require_once 'libraries/Theme.class.php'; -require_once 'libraries/tbl_columns_definition_form.lib.php'; require_once 'libraries/Types.class.php'; require_once 'libraries/mysql_charsets.inc.php'; require_once 'libraries/central_columns.lib.php'; @@ -504,65 +503,7 @@ class PMA_Central_Columns_Test extends PHPUnit_Framework_TestCase */ public function testPMAGetHTMLforCentralColumnsTableRow() { - $row = array( - 'col_name'=>'col_test', - 'col_type'=>'int', - 'col_length'=>12, - 'col_collation'=>'utf8_general_ci', - 'col_isNull'=>1, - 'col_extra'=> '', - 'col_attribute'=>'' - ); - $result = PMA_getHTMLforCentralColumnsTableRow($row, false, 1, 'phpmyadmin'); - $this->assertContains( - '<tr', - $result - ); - $this->assertContains( - PMA_URL_getHiddenInputs('phpmyadmin'), - $result - ); - $this->assertContains( - '<span', - $result - ); - $this->assertContains( - 'col_test', - $result - ); - $this->assertContains( - __('on update CURRENT_TIMESTAMP'), - $result - ); - $this->assertContains( - PMA_getHtmlForColumnDefault( - 1, 3, 0, /*overload*/mb_strtoupper($row['col_type']), '', - array('DefaultType'=>'NONE') - ), - $result - ); - $row['col_default'] = 100; - $result_1 = PMA_getHTMLforCentralColumnsTableRow( - $row, false, 1, 'phpmyadmin' - ); - $this->assertContains( - PMA_getHtmlForColumnDefault( - 1, 3, 0, /*overload*/mb_strtoupper($row['col_type']), '', - array('DefaultType'=>'USER_DEFINED', 'DefaultValue'=>100) - ), - $result_1 - ); - $row['col_default'] = 'CURRENT_TIMESTAMP'; - $result_2 = PMA_getHTMLforCentralColumnsTableRow( - $row, false, 1, 'phpmyadmin' - ); - $this->assertContains( - PMA_getHtmlForColumnDefault( - 1, 3, 0, /*overload*/mb_strtoupper($row['col_type']), '', - array('DefaultType'=>'CURRENT_TIMESTAMP') - ), - $result_2 - ); + // @todo Find a better way to test page } /** |