Пример #1
0
 public function setUp()
 {
     parent::setUp();
     Kwf_Model_Events_UnionReFire_EventSubscriber::$onUnionRowUpdatedCalled = array();
     Kwf_Model_Events_UnionReFire_EventSubscriber::$onSourceRowUpdatedCalled = array();
     Kwf_Events_Dispatcher::addListeners('Kwf_Model_Events_UnionReFire_UnionModel');
     Kwf_Events_Dispatcher::addListeners(Kwf_Events_Subscriber::getInstance('Kwf_Model_Events_UnionReFire_EventSubscriber'));
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     Kwf_Model_Events_ProxySourceNoClass_EventSubscriber::$onProxyRowInsertedCalled = 0;
     Kwf_Model_Events_ProxySourceNoClass_EventSubscriber::$onProxyModelUpdatedCalled = 0;
     Kwf_Events_Dispatcher::addListeners('Kwf_Model_Events_ProxySourceNoClass_Model');
     Kwf_Events_Dispatcher::addListeners(Kwf_Events_Subscriber::getInstance('Kwf_Model_Events_ProxySourceNoClass_EventSubscriber'));
 }
Пример #3
0
 public function setUp()
 {
     apc_clear_cache('user');
     Kwf_Cache::factory('Core', 'Memcached', array('lifetime' => null, 'automatic_cleaning_factor' => false, 'automatic_serialization' => true))->clean();
     Kwf_Cache_Simple::resetZendCache();
     parent::setUp();
     Kwf_Events_Dispatcher::addListeners('Kwf_Model_RowCache_RowCacheModel');
     Kwf_Model_Abstract::getInstance('Kwf_Model_RowCache_SourceModel')->setData(array(array('id' => 1, 'foo' => 1, 'bar' => 'x1'), array('id' => 2, 'foo' => 2, 'bar' => 'x2'), array('id' => 3, 'foo' => 3, 'bar' => 'x3'), array('id' => 4, 'foo' => 4, 'bar' => 'x4')));
 }
Пример #4
0
 public function setUp()
 {
     parent::setUp();
     $this->_m = Kwf_Model_Abstract::getInstance('Kwf_Model_Union_DeletedFlag_TestModel');
     Kwf_Events_Dispatcher::addListeners('Kwf_Model_Union_DeletedFlag_TestModel');
 }