Esempio n. 1
0
 public function testEventsDelete()
 {
     $trace = array();
     $this->_prepareDI($trace);
     $robot = GossipRobots::findFirst();
     $robot->trace =& $trace;
     $robot->delete();
     $this->assertEquals($trace, array('beforeDelete' => array('GossipRobots' => 1)));
 }
Esempio n. 2
0
 public function testEventsDelete()
 {
     require 'unit-tests/config.db.php';
     if (empty($configMysql)) {
         $this->markTestSkipped('Test skipped');
         return;
     }
     $trace = array();
     $this->_prepareDI($trace);
     $robot = GossipRobots::findFirst();
     $robot->trace =& $trace;
     $robot->delete();
     $this->assertEquals($trace, array('afterFetch' => array('GossipRobots' => 1), 'beforeDelete' => array('GossipRobots' => 1)));
 }