示例#1
0
 public function testDispatchNoFailed()
 {
     $collection = new Mage_Cron_Model_Resource_Schedule_Collection();
     $collection->addFieldToFilter('status', Mage_Cron_Model_Schedule::STATUS_ERROR);
     foreach ($collection as $item) {
         $this->fail($item->getMessages());
     }
 }
示例#2
0
 /**
  * Redeclared for processing cache tags throw application object
  *
  * @return array
  */
 protected function _getCacheTags()
 {
     $tags = parent::_getCacheTags();
     $tags[] = 'SCHEDULER_SCHEDULES';
     return $tags;
 }