Ejemplo n.º 1
0
 public function testInsertConnectorNotExists()
 {
     $newCommand = array('command_name' => "My check", 'connector_id' => 42, 'command_line' => '$USER1$/bin/my_check -w $ARGV1$', 'command_example' => '$USER1$/bin/my_check -w 90', 'command_type' => 2, 'enable_shell' => 0, 'command_comment' => "My check command");
     /* Test connector does not exists */
     $this->setExpectedException('PDOException', '', 23000);
     Command::insert($newCommand);
 }