Fix another test
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
53bbff7311
commit
a998d7516e
@ -107,6 +107,32 @@ class PMA_ServerStatus_Test extends PHPUnit_Framework_TestCase
|
||||
),
|
||||
);
|
||||
|
||||
$dbi->expects($this->at(0))
|
||||
->method('tryQuery')
|
||||
->with('SHOW GLOBAL STATUS')
|
||||
->will($this->returnValue(true));
|
||||
|
||||
$dbi->expects($this->at(1))
|
||||
->method('fetchRow')
|
||||
->will($this->returnValue(array("Aborted_clients", "0")));
|
||||
$dbi->expects($this->at(2))
|
||||
->method('fetchRow')
|
||||
->will($this->returnValue(array("Aborted_connects", "0")));
|
||||
$dbi->expects($this->at(3))
|
||||
->method('fetchRow')
|
||||
->will($this->returnValue(array("Com_delete_multi", "0")));
|
||||
$dbi->expects($this->at(4))
|
||||
->method('fetchRow')
|
||||
->will($this->returnValue(array("Com_create_function", "0")));
|
||||
$dbi->expects($this->at(5))
|
||||
->method('fetchRow')
|
||||
->will($this->returnValue(array("Com_empty_query", "0")));
|
||||
$dbi->expects($this->at(6))
|
||||
->method('fetchRow')
|
||||
->will($this->returnValue(false));
|
||||
|
||||
$dbi->expects($this->at(7))->method('freeResult');
|
||||
|
||||
$dbi->expects($this->any())->method('fetchResult')
|
||||
->will($this->returnValueMap($fetchResult));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user