예제 #1
0
 public function testUpdateConnectorNotExists()
 {
     $this->setExpectedException('PDOException', '', 23000);
     $newInformation = array('connector_id' => 42);
     Command::update(2, $newInformation);
 }
예제 #2
0
파일: Command.php 프로젝트: rk4an/centreon
 /**
  * Used for inserting relation into database
  *
  * @param int $fkey
  * @param int $skey
  * @return void
  */
 public static function insert($fkey, $skey = null)
 {
     ExternalCommand::update($skey, array('connector_id' => $fkey));
 }