protected function setUp() { //if (Mage::app()->getInstance()->getDbVendorName() != 'mysql') { // $this->markTestSkipped('Test is designed to run on MySQL only.'); //} $this->_model = new Mage_Core_Model_Resource_Helper_Mysql4('core'); $collection = new Mage_Core_Model_Resource_Store_Collection(); $this->_select = $collection->getSelect(); }
/** * @covers Mage_Core_Model_Resource_Db_Collection_Abstract::join */ public function testJoin() { $this->_collection->join(array('w' => 'core_website'), 'main_table.website_id=w.website_id'); $this->assertContains('core_website', (string) $this->_collection->getSelect()); }
public function testWalk() { $collection = new Mage_Core_Model_Resource_Store_Collection(); $this->_model->walk($collection->getSelect(), array(array($this, 'walkCallback'))); $this->assertGreaterThan(0, $this->_callbackCounter); }