Set reasonable mock value for tests
Set integer where we do a COUNT() SQL. See also #12539 Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
7cb6830ec8
commit
eb233da10a
@ -239,12 +239,12 @@ class PMA_ServerStatusMonitor_Test extends PHPUnit_Framework_TestCase
|
||||
|
||||
$value = array(
|
||||
'sql_text' => 'insert sql_text',
|
||||
'#' => 'types',
|
||||
'#' => 11,
|
||||
);
|
||||
|
||||
$value2 = array(
|
||||
'sql_text' => 'update sql_text',
|
||||
'#' => 'types2',
|
||||
'#' => 10,
|
||||
);
|
||||
|
||||
$dbi->expects($this->at(1))->method('fetchAssoc')
|
||||
@ -262,10 +262,10 @@ class PMA_ServerStatusMonitor_Test extends PHPUnit_Framework_TestCase
|
||||
$ret = PMA_getJsonForLogDataTypeSlow($start, $end);
|
||||
|
||||
$result_rows = array(
|
||||
array('sql_text' => 'insert sql_text', '#' => 'types'),
|
||||
array('sql_text' => 'update sql_text', '#' => 'types2')
|
||||
array('sql_text' => 'insert sql_text', '#' => 11),
|
||||
array('sql_text' => 'update sql_text', '#' => 10)
|
||||
);
|
||||
$result_sum = array('insert' =>0, 'TOTAL' =>0, 'update' => 0);
|
||||
$result_sum = array('insert' =>11, 'TOTAL' =>21, 'update' => 10);
|
||||
$this->assertEquals(
|
||||
2,
|
||||
$ret['numRows']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user