Remove unsed method in the CentralColumns class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
a7c9d65d4c
commit
a6df16e8dd
@ -9,7 +9,6 @@ namespace PhpMyAdmin;
|
||||
|
||||
use PhpMyAdmin\Charsets\Charset;
|
||||
use PhpMyAdmin\Charsets\Collation;
|
||||
use PhpMyAdmin\Html\Generator;
|
||||
use function array_unique;
|
||||
use function bin2hex;
|
||||
use function ceil;
|
||||
@ -857,35 +856,6 @@ class CentralColumns
|
||||
return $columns_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get HTML for "check all" check box with "with selected" dropdown
|
||||
*
|
||||
* @param string $themeImagePath pma theme image url
|
||||
* @param string $text_dir url for text directory
|
||||
*/
|
||||
public function getTableFooter(string $themeImagePath, string $text_dir): string
|
||||
{
|
||||
$html_output = $this->template->render('select_all', [
|
||||
'theme_image_path' => $themeImagePath,
|
||||
'text_dir' => $text_dir,
|
||||
'form_name' => 'tableslistcontainer',
|
||||
]);
|
||||
|
||||
$html_output .= '<button class="btn btn-link mult_submit change_central_columns" type="submit"'
|
||||
. ' name="edit_central_columns" value="edit central columns"'
|
||||
. ' title="' . __('Edit') . '">' . "\n"
|
||||
. Generator::getIcon('b_edit', __('Edit'))
|
||||
. '</button>' . "\n";
|
||||
|
||||
$html_output .= '<button class="btn btn-link mult_submit" type="submit"'
|
||||
. ' name="delete_central_columns" value="remove_from_central_columns"'
|
||||
. ' title="' . __('Delete') . '">' . "\n"
|
||||
. Generator::getIcon('b_drop', __('Delete'))
|
||||
. '</button>' . "\n";
|
||||
|
||||
return $html_output;
|
||||
}
|
||||
|
||||
/**
|
||||
* function generate and return the table footer for
|
||||
* multiple edit central columns page
|
||||
|
||||
@ -371,7 +371,7 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{# getTableFooter #}
|
||||
|
||||
{% include 'select_all.twig' with {
|
||||
'theme_image_path': theme_image_path,
|
||||
'text_dir' : text_dir,
|
||||
|
||||
@ -721,25 +721,6 @@ class CentralColumnsTest extends AbstractTestCase
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for getTableFooter
|
||||
*/
|
||||
public function testGetTableFooter(): void
|
||||
{
|
||||
$themeImagePath = 'themeImagePath';
|
||||
$text_dir = 'text_dir';
|
||||
$result = $this->centralColumns->getTableFooter($themeImagePath, $text_dir);
|
||||
$this->assertStringContainsString(
|
||||
'<input type="checkbox" id="tableslistcontainer_checkall" class="checkall_box"',
|
||||
$result
|
||||
);
|
||||
$this->assertStringContainsString('With selected:', $result);
|
||||
$this->assertStringContainsString(
|
||||
'<button class="btn btn-link mult_submit change_central_columns"',
|
||||
$result
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for getHtmlForColumnDropdown
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user