/**
  * Test for PMA_getHtmlForServerEngines for specific engines "FEDERATED"
  *
  * @return void
  */
 public function testPMAGetPluginAndModuleInfoSpecific()
 {
     $_REQUEST['engine'] = "FEDERATED";
     //Mock DBI
     $dbi = $this->getMockBuilder('PMA_DatabaseInterface')->disableOriginalConstructor()->getMock();
     $GLOBALS['dbi'] = $dbi;
     //test PMA_getHtmlForAllServerEngines for specific engines "FEDERATED"
     $html = PMA_getHtmlForServerEngines();
     //validate 1: Engine header
     $this->assertContains('FEDERATED', $html);
     $this->assertContains('Federated MySQL storage engine', $html);
     $this->assertContains('This MySQL server does not support the FEDERATED storage engine.', $html);
     $enginer_info = 'There is no detailed status information ' . 'available for this storage engine';
     $this->assertContains($enginer_info, $html);
 }
<?php

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * display list of server engines and additional information about them
 *
 * @package PhpMyAdmin
 */
/**
 * requirements
 */
require_once 'libraries/common.inc.php';
/**
 * Does the common work
 */
require 'libraries/server_common.inc.php';
require 'libraries/StorageEngine.class.php';
require 'libraries/server_engines.lib.php';
/**
 * Displays the sub-page heading
 */
$response = PMA_Response::getInstance();
$response->addHTML(PMA_getHtmlForSubPageHeader('engines'));
/**
 * start output
 */
$response->addHTML(PMA_getHtmlForServerEngines());
exit;