Advisor: mark that 'Rate of reading fixed position' may be wrong, requires further...
[phpmyadmin/thilanka.git] / test / libraries / common / PMA_buildActionTitles_test.php
blob97c2be91cd94de922ca558716f3d18594368b498
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Test for PMA_buildActionTitles from common.lib
6 * @package phpMyAdmin-test
7 * @version $Id: PMA_buildActionTitles_test.php
8 * @group common.lib-tests
9 */
12 * Include to test.
14 require_once 'libraries/common.lib.php';
16 class PMA_buildActionTitles_test extends PHPUnit_Framework_TestCase
19 function setup()
21 $GLOBALS['cfg'] = array('PropertiesIconic' => 'both');
22 $GLOBALS['pmaThemeImage'] = 'theme/';
25 function testBuildActionTitles(){
26 $titles = array();
28 $titles['Browse'] = PMA_getIcon('b_browse.png', __('Browse'));
29 $titles['NoBrowse'] = PMA_getIcon('bd_browse.png', __('Browse'));
30 $titles['Search'] = PMA_getIcon('b_select.png', __('Search'));
31 $titles['NoSearch'] = PMA_getIcon('bd_select.png', __('Search'));
32 $titles['Insert'] = PMA_getIcon('b_insrow.png', __('Insert'));
33 $titles['NoInsert'] = PMA_getIcon('bd_insrow.png', __('Insert'));
34 $titles['Structure'] = PMA_getIcon('b_props.png', __('Structure'));
35 $titles['Drop'] = PMA_getIcon('b_drop.png', __('Drop'));
36 $titles['NoDrop'] = PMA_getIcon('bd_drop.png', __('Drop'));
37 $titles['Empty'] = PMA_getIcon('b_empty.png', __('Empty'));
38 $titles['NoEmpty'] = PMA_getIcon('bd_empty.png', __('Empty'));
39 $titles['Edit'] = PMA_getIcon('b_edit.png', __('Edit'));
40 $titles['NoEdit'] = PMA_getIcon('bd_edit.png', __('Edit'));
41 $titles['Export'] = PMA_getIcon('b_export.png', __('Export'));
42 $titles['NoExport'] = PMA_getIcon('bd_export.png', __('Export'));
43 $titles['Execute'] = PMA_getIcon('b_nextpage.png', __('Execute'));
44 $titles['NoExecute'] = PMA_getIcon('bd_nextpage.png', __('Execute'));
46 $this->assertEquals($titles, PMA_buildActionTitles());