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; $relation = new Relation($GLOBALS['dbi']); $this->multSubmits = new MultSubmits( $GLOBALS['dbi'], new Template(), new Transformations(), new RelationCleanup($GLOBALS['dbi'], $relation), new Operations($GLOBALS['dbi'], $relation) ); } /** * Test for getHtmlForAddPrefixTable * * @return void */ public function testGetHtmlForAddPrefixTable() { $action = 'delete_row'; $urlParams = ['url_query' => 'PMA_original_url_query']; //Call the test function $html = $this->multSubmits->getHtmlForAddPrefixTable($action, $urlParams); //form action $this->assertStringContainsString( '