public function testPost()
 {
     $msg = array('user' => 'admin', 'password' => 'admin');
     $method = "login";
     $jsonm = new JsonMessage();
     $jsonm->send($method, $msg);
     //$jsonm->displayResponse();
     $xmlm = new XmlMessage();
     $xmlm->send($method, $msg);
     //$xmlm->displayResponse();
     $key = array("00000000000000000000000000000002", "2012-09-04 09:48:57", "0", 'a:1:{i:0;s:32:"21232f297a57a5a743894a0e4a801fc3";}');
     $table = "USERS_PROPERTIES";
     $rest = new RestMessage();
     $rest->sendPOST($table, $key);
     //$rest->displayResponse();
     $key1 = array("00000000000000000000000000000002");
     $resp = $rest->sendGET($table, $key1);
     $queryTable = $this->getConnection()->createQueryTable('USERS_PROPERTIES', 'SELECT * FROM USERS_PROPERTIES WHERE USR_UID = "00000000000000000000000000000002"');
     //$this->assertEquals($queryTable, $resp, "ERROR getting data");
 }
Example #2
0
 public function testDelete()
 {
     $msg = array('user' => 'admin', 'password' => 'admin');
     $method = "login";
     $jsonm = new JsonMessage();
     $jsonm->send($method, $msg);
     //$jsonm->displayResponse();
     $xmlm = new XmlMessage();
     $xmlm->send($method, $msg);
     //$xmlm->displayResponse();
     $key = array("PRO_TITLE", "", "6666000755065a63d67f727063273222", "en");
     $table = "CONTENT";
     $rest = new RestMessage();
     $rest->sendDELETE($table, $key);
     //$rest->displayResponse();
     $resp = $rest->sendGET($table, $key);
     $queryTable = $this->getConnection()->createQueryTable('CONTENT', 'SELECT * FROM CONTENT WHERE CON_CATEGORY = "PRO_TITLE" AND CON_ID = "6666000755065a63d67f727063273222"');
     //$this->assertEquals($queryTable, $resp, "ERROR deleting data");
 }
 public function testDelete()
 {
     $msg = array('user' => 'admin', 'password' => 'admin');
     $method = "login";
     $jsonm = new JsonMessage();
     $jsonm->send($method, $msg);
     //$jsonm->displayResponse();
     $xmlm = new XmlMessage();
     $xmlm->send($method, $msg);
     //$xmlm->displayResponse();
     $key = array("HOUSE", "PUSHIN", "en");
     $table = "TRANSLATION";
     $rest = new RestMessage();
     $rest->sendDELETE($table, $key);
     //$rest->displayResponse();
     $queryTable = $this->getConnection()->createQueryTable('TRANSLATION', 'SELECT * FROM TRANSLATION WHERE TRN_CATEGORY  = "HOUSE" AND TRN_ID = "PUSHIN"');
     //$this->assertEquals($queryTable, $resp, "ERROR getting data");
 }
 public function testDelete()
 {
     $msg = array('user' => 'admin', 'password' => 'admin');
     $method = "login";
     $jsonm = new JsonMessage();
     $jsonm->send($method, $msg);
     //$jsonm->displayResponse();
     $xmlm = new XmlMessage();
     $xmlm->send($method, $msg);
     //$xmlm->displayResponse();
     $APP_UID = array("4670755835065b7eb6a4187052654566");
     $table = "APPLICATION";
     $rest = new RestMessage();
     $rest->sendDELETE($table, $APP_UID);
     //$rest->displayResponse();
     $APP_UID2 = array("");
     $rest->sendPOST($table, $APP_UID2);
 }
Example #5
0
 public function testDelete()
 {
     $msg = array('user' => 'admin', 'password' => 'admin');
     $method = "login";
     $jsonm = new JsonMessage();
     $jsonm->send($method, $msg);
     //$jsonm->displayResponse();
     $xmlm = new XmlMessage();
     $xmlm->send($method, $msg);
     //$xmlm->displayResponse();
     $key = array("440848627503b77c71a9637074444444");
     $table = "STEP";
     $rest = new RestMessage();
     $rest->sendDELETE($table, $key);
     //$rest->displayResponse();
     $resp = $rest->sendGET($table, $key);
     $queryTable = $this->getConnection()->createQueryTable('STEP', 'SELECT * FROM STEP WHERE STEP_UID = "440848627503b77c71a9637074444444"');
     $key2 = array("741973");
     $rest->sendGET($table, $key2);
     //$this->assertEquals($queryTable, $resp, "ERROR getting data");
 }
Example #6
0
<?php

require_once "JsonMessage.php";
require_once "XmlMessage.php";
require_once "RestMessage.php";
$msg = array('user' => 'admin', 'password' => 'admin');
$method = "login";
$jsonm = new JsonMessage();
$jsonm->send($method, $msg);
$jsonm->displayResponse();
$xmlm = new XmlMessage();
$xmlm->send($method, $msg);
$xmlm->displayResponse();
$msg = array("LABEL", "LOGIN", "en");
$table = "TRANSLATION";
$rest = new RestMessage();
$rest->sendGET($table, $msg);
$rest->displayResponse();
$msg = array("HOUSE", "PUSHIN", "en", "sample", "2012-06-06");
$rest->sendPOST($table, $msg);
$rest->displayResponse();
$msg = array("HOUSE", "PUSHIN", "en", "samplemod", "2012-07-06");
$rest->sendPUT($table, $msg);
$rest->displayResponse();
$msg = array("HOUSE", "PUSHIN", "en");
$rest->sendDELETE($table, $msg);
$rest->displayResponse();
Example #7
0
 public function testDelete()
 {
     $msg = array('user' => 'admin', 'password' => 'admin');
     $method = "login";
     $jsonm = new JsonMessage();
     $jsonm->send($method, $msg);
     //$jsonm->displayResponse();
     $xmlm = new XmlMessage();
     $xmlm->send($method, $msg);
     //$xmlm->displayResponse();
     $key = array("00000000000000000000000000000002");
     $table = "USERS";
     $rest = new RestMessage();
     $rest->sendDELETE($table, $key);
     //$rest->displayResponse();
     $resp = $rest->sendGET($table, $key);
     $queryTable = $this->getConnection()->createQueryTable('USERS', 'SELECT * FROM USERS WHERE USR_UID = "00000000000000000000000000000002"');
     //$this->assertEquals($queryTable, $resp, "ERROR deleting data");
 }
Example #8
0
 public function testDelete()
 {
     $msg = array('user' => 'admin', 'password' => 'admin');
     $method = "login";
     $jsonm = new JsonMessage();
     $jsonm->send($method, $msg);
     //$jsonm->displayResponse();
     $xmlm = new XmlMessage();
     $xmlm->send($method, $msg);
     //$xmlm->displayResponse();
     $key = array("2252443815002e3c2422675066811111");
     $table = "SESSION";
     $rest = new RestMessage();
     $rest->sendDELETE($table, $key);
     //$rest->displayResponse();
     $resp = $rest->sendGET($table, $key);
     $queryTable = $this->getConnection()->createQueryTable('SESSION', 'SELECT * FROM SESSION WHERE SES_UID = "2252443815002e3c2422675066811111"');
     //$this->assertEquals($queryTable, $resp, "ERROR deleting data");
 }
Example #9
0
 public function testDelete()
 {
     $msg = array('user' => 'admin', 'password' => 'admin');
     $method = "login";
     $jsonm = new JsonMessage();
     $jsonm->send($method, $msg);
     //$jsonm->displayResponse();
     $xmlm = new XmlMessage();
     $xmlm->send($method, $msg);
     //$xmlm->displayResponse();
     $key = array("741388075505cd6bba2e993094312900", "000000000000000000000000000004", "00000000000000000000000000000001");
     $table = "APP_OWNER";
     $rest = new RestMessage();
     $rest->sendDELETE($table, $key);
     //$rest->displayResponse();
     $queryTable = $this->getConnection()->createQueryTable('APP_OWNER', 'SELECT * FROM APP_OWNER WHERE APP_UID = "741388075505cd6bba2e993094312900"');
     $resp = array();
     $key2 = array("741973");
     $rest->sendGET($table, $key2);
     //$this->assertEquals($queryTable, $resp, "ERROR getting data");
 }
Example #10
0
 public function testDelete()
 {
     $msg = array('user' => 'admin', 'password' => 'admin');
     $method = "login";
     $jsonm = new JsonMessage();
     $jsonm->send($method, $msg);
     //$jsonm->displayResponse();
     $xmlm = new XmlMessage();
     $xmlm->send($method, $msg);
     //$xmlm->displayResponse();
     $key = array("6548800755065a63d67f727063255555");
     $table = "PROCESS";
     $rest = new RestMessage();
     $rest->sendDELETE($table, $key);
     //$rest->displayResponse();
     $resp = $rest->sendGET($table, $key);
     $queryTable = $this->getConnection()->createQueryTable('PROCESS', 'SELECT * FROM PROCESS WHERE PRO_UID = "6548800755065a63d67f727063255555"');
     //$this->assertEquals($queryTable, $resp, "ERROR deleting data");
 }