diff options
author | Marc Delisle <marc@infomarc.info> | 2015-06-07 13:53:33 +0300 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2015-06-07 13:53:33 +0300 |
commit | 00e27a6a7f7f8cc86db6007d696d80528150e670 (patch) | |
tree | d1130f529ab1658f1374e2f67d71032decc09250 /test | |
parent | 4d9e3345ded0da9d22de91f7a2182640d2d63a84 (diff) |
Remove unused code
Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/PMA_DisplayResults_test.php | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/test/classes/PMA_DisplayResults_test.php b/test/classes/PMA_DisplayResults_test.php index d4cde9043a..9846c986dd 100644 --- a/test/classes/PMA_DisplayResults_test.php +++ b/test/classes/PMA_DisplayResults_test.php @@ -321,75 +321,6 @@ class PMA_DisplayResults_Test extends PHPUnit_Framework_TestCase } /** - * Data provider for testGetCheckBoxesForMultipleRowOperations - * - * @return array parameters and output - */ - public function dataProviderForGetCheckBoxesForMultipleRowOperations() - { - return array( - array( - '_left', - array('edit_lnk' => null, 'del_lnk' => null), - //array('edit_lnk' => 'nn', 'del_lnk' => 'nn'), - '<td class="odd" class="center"><input type=' - . '"checkbox" id="id_rows_to_delete0_left" name="rows_to_delete[0]" ' - . 'class="multi_checkbox" value="%60cars%60.%60id%60+%3D+3" />' - . '<input type="hidden" class="condition_array" value="{"' - . '`cars`.`id`":"= 3"}" /> </td><td class="even"' - . ' class="center"><input type="checkbox" ' - . 'id="id_rows_to_delete1_left" name="rows_to_delete[1]" class=' - . '"multi_checkbox" value="%60cars%60.%60id%60+%3D+9" /><input ' - . 'type="hidden" class="condition_array" value="{"`cars`.' - . '`id`":"= 9"}" /> </td>' - ) - ); - } - - /** - * Test for _getCheckBoxesForMultipleRowOperations - * - * @param string $dir _left / _right - * @param array $displayParts which parts to display - * @param string $output output of _getCheckBoxesForMultipleRowOperations - * - * @return void - * - * @dataProvider dataProviderForGetCheckBoxesForMultipleRowOperations - */ - public function testGetCheckBoxesForMultipleRowOperations( - $dir, $displayParts, $output - ) { - $display_params = array( - 'row_delete' => array( - '<td class="odd" class="center"><input ' - . 'type="checkbox" id="id_rows_to_delete0[%_PMA_CHECKBOX_DIR_%]" ' - . 'name="rows_to_delete[0]" class="multi_checkbox" value="%60cars' - . '%60.%60id%60+%3D+3" /><input type="hidden" class="condition_' - . 'array" value="{"`cars`.`id`":"= 3"}" /> ' - . '</td>', - '<td class="even" class="center"><input ' - . 'type="checkbox" id="id_rows_to_delete1[%_PMA_CHECKBOX_DIR_%]" ' - . 'name="rows_to_delete[1]" class="multi_checkbox" value="%60cars' - . '%60.%60id%60+%3D+9" /><input type="hidden" class="condition_' - . 'array" value="{"`cars`.`id`":"= 9"}" /> ' - . '</td>' - ) - ); - - $this->object->__set('display_params', $display_params); - - $_SESSION['tmpval']['repeat_cells'] = 0; - $this->assertEquals( - $output, - $this->_callPrivateFunction( - '_getCheckBoxesForMultipleRowOperations', - array($dir, $displayParts) - ) - ); - } - - /** * Test for _getOffsets - case 1 * * @return void |