Translation update done using Pootle.
[phpmyadmin/ammaryasirr.git] / test / libraries / common / PMA_getTitleForTarget_test.php
blob17566813af366927d798d6fb8405b4d37e7985a6
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Test for PMA_getTitleForTarget from common.lib
6 * @package phpMyAdmin-test
7 * @version $Id: PMA_getTitleForTarget_test.php
8 * @group common.lib-tests
9 */
12 * Include to test.
14 require_once 'libraries/common.lib.php';
16 class PMA_getTitleForTarget_test extends PHPUnit_Framework_TestCase{
18 function dataProvider(){
19 return array(
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')),
32 /**
33 * @dataProvider dataProvider
34 * @return void
36 function testGetTitleForTarget($target, $result){
38 $this->assertEquals($result,PMA_getTitleForTarget($target));
43 //PMA_getTitleForTarget