function testGetsProductionConfig() { $category = new Elite_Vaf_Model_Catalog_Category(); // should instantiate obj directly (so no configuration is yet set) $category->getProductCollection(); $this->assertTrue($category->getConfig() instanceof Zend_Config, 'during production it gets the config object statically'); }
protected function getCategory() { $category = new Elite_Vaf_Model_Catalog_Category(); $category->setConfig(new Zend_Config(array('category' => array()))); return $category; }