PMA_VERSION, 'table_coords' => "table_name", 'displaywork' => 'displaywork', 'db' => "information_schema", 'table_info' => 'table_info', 'relwork' => 'relwork', 'commwork' => 'commwork', 'pdfwork' => 'pdfwork', 'column_info' => 'column_info', 'relation' => 'relation', ]; //$_SESSION //Mock DBI $dbi = $this->getMockBuilder('PhpMyAdmin\DatabaseInterface') ->disableOriginalConstructor() ->getMock(); $dbi->expects($this->any()) ->method('query') ->will($this->returnValue(true)); $GLOBALS['dbi'] = $dbi; $this->multSubmits = new MultSubmits(); } /** * Test for getHtmlForReplacePrefixTable * * @return void */ public function testGetHtmlForReplacePrefixTable() { $action = 'delete_row'; $urlParams = ['url_query' => 'PMA_original_url_query']; //Call the test function $html = $this->multSubmits->getHtmlForReplacePrefixTable($action, $urlParams); //form action $this->assertStringContainsString( '