Ejemplo n.º 1
0
 public function testGetLastInsertId()
 {
     $this->mockEngineMethod('getLastInsertId')->will($this->returnValue(true));
     $this->assertTrue(DbClient::getLastInsertId());
 }
 /**
  * @return void
  */
 public function insert()
 {
     DbClient::insert(static::getTableName(), $this->getRow());
     if ($this->hasColumn('id') === false) {
         $this->setColumn('id', DbClient::getLastInsertId());
     }
 }