/**
  * Test for PMA_getLinkToDbAndTable
  *
  * @return void
  */
 public function testPMAGetLinkToDbAndTable()
 {
     $url_dbname = "url_dbname";
     $dbname = "dbname";
     $tablename = "tablename";
     $html = PMA_getLinkToDbAndTable($url_dbname, $dbname, $tablename);
     //$dbname
     $this->assertContains(__('Database'), $html);
     $this->assertContains(PMA\libraries\Util::getScriptNameForOption($GLOBALS['cfg']['DefaultTabDatabase'], 'database'), $html);
     $item = PMA_URL_getCommon(array('db' => $url_dbname, 'reload' => 1));
     $this->assertContains($item, $html);
     $this->assertContains(htmlspecialchars($dbname), $html);
     //$tablename
     $this->assertContains(__('Table'), $html);
     $this->assertContains(PMA\libraries\Util::getScriptNameForOption($GLOBALS['cfg']['DefaultTabTable'], 'table'), $html);
     $item = PMA_URL_getCommon(array('db' => $url_dbname, 'table' => $tablename, 'reload' => 1));
     $this->assertContains($item, $html);
     $this->assertContains(htmlspecialchars($tablename), $html);
     $item = PMA\libraries\Util::getTitleForTarget($GLOBALS['cfg']['DefaultTabTable']);
     $this->assertContains($item, $html);
 }
 /**
  * Test for
  *
  * @param string $target Target
  * @param array  $result Expected value
  *
  * @return void
  *
  * @dataProvider dataProvider
  */
 function testGetTitleForTarget($target, $result)
 {
     $this->assertEquals($result, PMA\libraries\Util::getTitleForTarget($target));
 }