コード例 #1
0
ファイル: ObserverTest.php プロジェクト: relue/magento2
 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
ファイル: Collection.php プロジェクト: iplaydu/Aoe_Scheduler
 /**
  * Redeclared for processing cache tags throw application object
  *
  * @return array
  */
 protected function _getCacheTags()
 {
     $tags = parent::_getCacheTags();
     $tags[] = 'SCHEDULER_SCHEDULES';
     return $tags;
 }