diff --git a/test/classes/Display/ResultsTest.php b/test/classes/Display/ResultsTest.php index 4ac374e7d8..0d350e9c5e 100644 --- a/test/classes/Display/ResultsTest.php +++ b/test/classes/Display/ResultsTest.php @@ -1627,7 +1627,7 @@ class ResultsTest extends PmaTestCase false, [], 0, - 0, + '', 'foo bar baz' . "\n", @@ -1788,8 +1788,15 @@ class ResultsTest extends PmaTestCase ]; $this->object->__set('fields_meta', $fields_meta); + $dbi = $this->getMockBuilder('PhpMyAdmin\DatabaseInterface') + ->disableOriginalConstructor() + ->getMock(); + + $dbi->expects($this->any())->method('fieldFlags') + ->willReturn(''); + // MIME transformations - $GLOBALS['dbi']->expects($this->exactly(1)) + $dbi->expects($this->exactly(1)) ->method('fetchResult') ->willReturn( [ @@ -1804,6 +1811,8 @@ class ResultsTest extends PmaTestCase ] ); + $GLOBALS['dbi'] = $dbi; + $transformations = new Transformations(); $this->object->__set( 'mime_map',