getMockBuilder('PMA_DatabaseInterface') ->disableOriginalConstructor() ->getMock(); $GLOBALS['dbi'] = $dbi; //Call the test function /** * Prepare plugin list */ $plugins = array(); $row = array(); $row["plugin_name"] = "plugin_name1"; $row["plugin_type"] = "plugin_type1"; $row["plugin_type_version"] = "plugin_version1"; $row["plugin_author"] = "plugin_author1"; $row["plugin_license"] = "plugin_license1"; $row["plugin_description"] = "plugin_description1"; $row["is_active"] = true; $plugins[$row['plugin_type']][] = $row; $html = PMA_getPluginTab($plugins); //validate 1:Items $this->assertContains( '