2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Test for PMA_getTitleForTarget from common.lib
6 * @package phpMyAdmin-test
7 * @version $Id: PMA_getTitleForTarget_test.php
8 * @group common.lib-tests
14 require_once 'libraries/common.lib.php';
16 class PMA_getTitleForTarget_test
extends PHPUnit_Framework_TestCase
{
18 function dataProvider(){
20 array('tbl_structure.php', __('Structure')),
21 array('tbl_sql.php', __('SQL'),),
22 array('tbl_select.php', __('Search'),),
23 array('tbl_change.php', __('Insert')),
24 array('sql.php', __('Browse')),
25 array('db_structure.php', __('Structure')),
26 array('db_sql.php', __('SQL')),
27 array('db_search.php', __('Search')),
28 array('db_operations.php', __('Operations')),
33 * @dataProvider dataProvider
36 function testGetTitleForTarget($target, $result){
38 $this->assertEquals($result,PMA_getTitleForTarget($target));
43 //PMA_getTitleForTarget