Skip to content

Commit

Permalink
Mock parent class instead of Magento_Db_Adapter_Pdo_Mysql which is wa…
Browse files Browse the repository at this point in the history
…s added after Magento CE 1.7 #57
  • Loading branch information
madalinoprea committed Mar 3, 2016
1 parent 15d6043 commit 854b0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Debug/Test/Model/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function testPurgeAllProfiles()
$statement = $this->getMock('Varien_Db_Statement_Pdo_Mysql', array(), array(), '', false);
$statement->expects($this->once())->method('rowCount')->willReturn(2);

$connection = $this->getMock('Magento_Db_Adapter_Pdo_Mysql', array(), array(), '', false);
$connection = $this->getMock('Varien_Db_Adapter_Pdo_Mysql', array(), array(), '', false);
$connection->expects($this->once())->method('query')
->with('DELETE FROM profile_table')
->willReturn($statement);
Expand Down

0 comments on commit 854b0a6

Please sign in to comment.