Skip to content

Commit

Permalink
Loosen some assertions. We are tying to prevent calls to dbi.
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Dec 11, 2015
1 parent 76a4162 commit 6016b64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/classes/plugin/export/PMA_ExportSql_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ public function testExportData()

$_table = new PMA_Table('table', 'db');

$dbi->expects($this->once())
$dbi->expects($this->any())
->method('getTable')
->will($this->returnValue($_table));

Expand Down Expand Up @@ -1987,7 +1987,7 @@ public function testExportDataWithUpdate()
)
);

$dbi->expects($this->once())
$dbi->expects($this->any())
->method('getTable')
->will($this->returnValue(new PMA_Table('table', 'db')));

Expand Down Expand Up @@ -2036,7 +2036,7 @@ public function testExportDataWithIsView()
->method('isView')
->will($this->returnValue(true));

$dbi->expects($this->once())
$dbi->expects($this->any())
->method('getTable')
->will($this->returnValue($_table));

Expand Down Expand Up @@ -2078,7 +2078,7 @@ public function testExportDataWithError()
->method('getError')
->will($this->returnValue('err'));

$dbi->expects($this->once())
$dbi->expects($this->any())
->method('getTable')
->will($this->returnValue(new PMA_Table('table', 'db')));

Expand Down

0 comments on commit 6016b64

Please sign in to comment.