We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit be87c2f4 authored by Mike Pretzlaw's avatar Mike Pretzlaw

Correct testing on setting the adapter for the Db_Info-Model

parent 9fcb56c5
...@@ -101,8 +101,8 @@ class EcomDev_PHPUnitTest_Test_Model_Mysql4_Db_InfoTest extends EcomDev_PHPUnit_ ...@@ -101,8 +101,8 @@ class EcomDev_PHPUnitTest_Test_Model_Mysql4_Db_InfoTest extends EcomDev_PHPUnit_
public function testYouNeedToProvideAnAdapter() public function testYouNeedToProvideAnAdapter()
{ {
/** @var Varien_Db_Adapter_Interface $adapterMock */ /** @var Varien_Db_Adapter_Interface $adapterMock */
$adapterMock = $this->getMock('Varien_Db_Adapter_Interface'); $adapterMock = $this->getMock('Varien_Db_Adapter_Pdo_Mysql', array(), array(), '', false);
$this->assertTrue($adapterMock instanceof Varien_Db_Adapter_Interface); $this->assertTrue($adapterMock instanceof Varien_Db_Adapter_Pdo_Mysql);
$this->_factory->setAdapter($adapterMock); $this->_factory->setAdapter($adapterMock);
...@@ -119,7 +119,7 @@ class EcomDev_PHPUnitTest_Test_Model_Mysql4_Db_InfoTest extends EcomDev_PHPUnit_ ...@@ -119,7 +119,7 @@ class EcomDev_PHPUnitTest_Test_Model_Mysql4_Db_InfoTest extends EcomDev_PHPUnit_
*/ */
protected function _getMockedAdapter() protected function _getMockedAdapter()
{ {
/** @var Varien_Db_Adapter_Pdo_Mysql $adapterMock Mock without connecting to a server. */ /** @var Varien_Db_Adapter_Pdo_Mysql|PHPUnit_Framework_MockObject_MockObject $adapterMock Mock without connecting to a server. */
$adapterMock = $this->getMock( $adapterMock = $this->getMock(
'Varien_Db_Adapter_Pdo_Mysql', 'Varien_Db_Adapter_Pdo_Mysql',
array( array(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment