public/phpmyadmin/test/classes/Config/PageSettingsTest.php
/**
     * Test showGroup with a known group name
     *
     * @return void
     */
Test showGroup with a known group name
@return void
Test showGroup with a known group name @return void
public function testShowGroupBrowse()
    {
        $object = PageSettings::showGroup('Browse');
        $html = $object->getHTML();
        $this->assertContains(
            '<div id="page_settings_modal">'
            . '<div class="page_settings">'
            . '<form method="post" '
            . 'action="phpunit?db=db&amp;table=&amp;server=1&amp;target=&amp;lang=en" '
            . 'class="config-form disableAjax">',
            $html
        );
        $this->assertContains(
            '<input type="hidden" name="submit_save" value="Browse" />',
            $html
        );
        $this->assertContains(
            "validateField('MaxRows', 'PMA_validatePositiveNumber', true);\n"
            . "validateField('RepeatCells', 'PMA_validateNonNegativeNumber', true);\n"
            . "validateField('LimitChars', 'PMA_validatePositiveNumber', true);\n",
            $html
        );
    }
public function testShowGroupBrowse ( ) { $ object = PageSettings :: showGroup ( 'Browse' ) ; $ html = $ object -> getHTML ( ) ; $ this -> assertContains ( '<div id="page_settings_modal">' . '<div class="page_settings">' . '<form method="post" ' . 'action="phpunit?db=db&amp;table=&amp;server=1&amp;target=&amp;lang=en" ' . 'class="config-form disableAjax">' , $ html ) ; $ this -> assertContains ( '<input type="hidden" name="submit_save" value="Browse" />' , $ html ) ; $ this -> assertContains ( " validateField('MaxRows', 'PMA_validatePositiveNumber', true); \n " . " validateField('RepeatCells', 'PMA_validateNonNegativeNumber', true); \n " . " validateField('LimitChars', 'PMA_validatePositiveNumber', true); \n " , $ html ) ; }
Test showGroup with a known group name
 @return void
Test showGroup with a known group name @return void
// Test some sample parts