public/phpmyadmin/test/classes/Server/Status/QueriesTest.php
/**
     * Test for Queries::getHtmlForDetails
     *
     * @return void
     */
Test for Queries::getHtmlForDetails
@return void
Test for Queries :: getHtmlForDetails @return void
public function testPMAGetHtmlForServerStatusQueriesDetails()
    {
        $html = Queries::getHtmlForDetails($this->serverStatusData);
        $this->assertContains(
            __('Statements'),
            $html
        );
        $this->assertContains(
            htmlspecialchars("change db"),
            $html
        );
        $this->assertContains(
            '54',
            $html
        );
        $this->assertContains(
            htmlspecialchars("select"),
            $html
        );
        $this->assertContains(
            htmlspecialchars("set option"),
            $html
        );
        $this->assertContains(
            htmlspecialchars("show databases"),
            $html
        );
        $this->assertContains(
            htmlspecialchars("show status"),
            $html
        );
        $this->assertContains(
            htmlspecialchars("show tables"),
            $html
        );
        $this->assertContains(
            '<div id="serverstatusquerieschart" class="width100" data-chart="',
            $html
        );
    }
public function testPMAGetHtmlForServerStatusQueriesDetails ( ) { $ html = Queries :: getHtmlForDetails ( $ this -> serverStatusData ) ; $ this -> assertContains ( __ ( 'Statements' ) , $ html ) ; $ this -> assertContains ( htmlspecialchars ( " change db " ) , $ html ) ; $ this -> assertContains ( '54' , $ html ) ; $ this -> assertContains ( htmlspecialchars ( " select " ) , $ html ) ; $ this -> assertContains ( htmlspecialchars ( " set option " ) , $ html ) ; $ this -> assertContains ( htmlspecialchars ( " show databases " ) , $ html ) ; $ this -> assertContains ( htmlspecialchars ( " show status " ) , $ html ) ; $ this -> assertContains ( htmlspecialchars ( " show tables " ) , $ html ) ; $ this -> assertContains ( '<div id="serverstatusquerieschart" class="width100" data-chart="' , $ html ) ; }
Test for Queries::getHtmlForDetails
 @return void
Test for Queries :: getHtmlForDetails @return void
//Call the test function //validate 1: Queries::getHtmlForDetails //validate 2: used queries //validate 3:serverstatusquerieschart