function testBuildActionTitles() { $titles = array(); $titles['Browse'] = PMA_getIcon('b_browse.png', __('Browse')); $titles['NoBrowse'] = PMA_getIcon('bd_browse.png', __('Browse')); $titles['Search'] = PMA_getIcon('b_select.png', __('Search')); $titles['NoSearch'] = PMA_getIcon('bd_select.png', __('Search')); $titles['Insert'] = PMA_getIcon('b_insrow.png', __('Insert')); $titles['NoInsert'] = PMA_getIcon('bd_insrow.png', __('Insert')); $titles['Structure'] = PMA_getIcon('b_props.png', __('Structure')); $titles['Drop'] = PMA_getIcon('b_drop.png', __('Drop')); $titles['NoDrop'] = PMA_getIcon('bd_drop.png', __('Drop')); $titles['Empty'] = PMA_getIcon('b_empty.png', __('Empty')); $titles['NoEmpty'] = PMA_getIcon('bd_empty.png', __('Empty')); $titles['Edit'] = PMA_getIcon('b_edit.png', __('Edit')); $titles['NoEdit'] = PMA_getIcon('bd_edit.png', __('Edit')); $titles['Export'] = PMA_getIcon('b_export.png', __('Export')); $titles['NoExport'] = PMA_getIcon('bd_export.png', __('Export')); $titles['Execute'] = PMA_getIcon('b_nextpage.png', __('Execute')); $titles['NoExecute'] = PMA_getIcon('bd_nextpage.png', __('Execute')); $this->assertEquals($titles, PMA_buildActionTitles()); }
$message = PMA_Message::success(); } } require './libraries/db_common.inc.php'; $url_query .= '&goto=db_structure.php'; // Gets the database structure $sub_part = '_structure'; require './libraries/db_info.inc.php'; require_once './libraries/replication.inc.php'; } require_once './libraries/bookmark.lib.php'; require_once './libraries/mysql_charsets.lib.php'; $db_collation = PMA_getDbCollation($db); // in a separate file to avoid redeclaration of functions in some code paths require_once './libraries/db_structure.lib.php'; $titles = PMA_buildActionTitles(); // 1. No tables if ($num_tables == 0) { echo '<p>' . __('No tables found in database') . '</p>' . "\n"; // Routines //require './libraries/db_routines.inc.php'; // Events if (PMA_MYSQL_INT_VERSION > 50100) { require './libraries/db_events.inc.php'; } if (empty($db_is_information_schema)) { require './libraries/display_create_table.lib.php'; } // end if (Create Table dialog) /** * Displays the footer