fix travis error
This commit is contained in:
parent
c933d563f6
commit
0c66c9745e
@ -258,7 +258,7 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase
|
|||||||
*
|
*
|
||||||
* Retrieve an invoice using ref_ext
|
* Retrieve an invoice using ref_ext
|
||||||
* @depends testWSInvoicesCreateInvoice
|
* @depends testWSInvoicesCreateInvoice
|
||||||
* @return int
|
* @return array Invoice
|
||||||
*/
|
*/
|
||||||
public function testWSInvoicesGetInvoiceByRefExt($result)
|
public function testWSInvoicesGetInvoiceByRefExt($result)
|
||||||
{
|
{
|
||||||
@ -313,7 +313,7 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase
|
|||||||
* Update an invoice using ref_ext
|
* Update an invoice using ref_ext
|
||||||
* @depends testWSInvoicesCreateInvoice
|
* @depends testWSInvoicesCreateInvoice
|
||||||
*
|
*
|
||||||
* @return int
|
* @return array Invoice
|
||||||
*/
|
*/
|
||||||
public function testWSInvoicesUpdateInvoiceByRefExt($result)
|
public function testWSInvoicesUpdateInvoiceByRefExt($result)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -54,8 +54,8 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
protected $savdb;
|
protected $savdb;
|
||||||
protected $soapclient;
|
protected $soapclient;
|
||||||
|
|
||||||
private $WS_DOL_URL;
|
private $_WS_DOL_URL;
|
||||||
private $ns='http://www.dolibarr.org/ns/';
|
private $_ns='http://www.dolibarr.org/ns/';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -75,11 +75,11 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
$this->savlangs=$langs;
|
$this->savlangs=$langs;
|
||||||
$this->savdb=$db;
|
$this->savdb=$db;
|
||||||
|
|
||||||
$this->WS_DOL_URL = DOL_MAIN_URL_ROOT.'/webservices/server_thirdparty.php';
|
$this->_WS_DOL_URL = DOL_MAIN_URL_ROOT.'/webservices/server_thirdparty.php';
|
||||||
|
|
||||||
// Set the WebService URL
|
// Set the WebService URL
|
||||||
print __METHOD__." create nusoap_client for URL=".$this->WS_DOL_URL."\n";
|
print __METHOD__." create nusoap_client for URL=".$this->_WS_DOL_URL."\n";
|
||||||
$this->soapclient = new nusoap_client($this->WS_DOL_URL);
|
$this->soapclient = new nusoap_client($this->_WS_DOL_URL);
|
||||||
if ($this->soapclient) {
|
if ($this->soapclient) {
|
||||||
$this->soapclient->soap_defencoding='UTF-8';
|
$this->soapclient->soap_defencoding='UTF-8';
|
||||||
$this->soapclient->decodeUTF8(false);
|
$this->soapclient->decodeUTF8(false);
|
||||||
@ -137,7 +137,7 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* testWSThirdpartycreateThirdParty
|
* testWSThirdpartycreateThirdParty
|
||||||
*
|
*
|
||||||
* @return int
|
* @return array thirdparty created
|
||||||
*/
|
*/
|
||||||
public function testWSThirdpartycreateThirdParty()
|
public function testWSThirdpartycreateThirdParty()
|
||||||
{
|
{
|
||||||
@ -229,7 +229,7 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
* Use id to retrieve thirdparty
|
* Use id to retrieve thirdparty
|
||||||
* @depends testWSThirdpartycreateThirdParty
|
* @depends testWSThirdpartycreateThirdParty
|
||||||
*
|
*
|
||||||
* @return int
|
* @return array thirpdarty updated
|
||||||
*/
|
*/
|
||||||
public function testWSThirdpartygetThirdPartyById($result)
|
public function testWSThirdpartygetThirdPartyById($result)
|
||||||
{
|
{
|
||||||
@ -254,7 +254,7 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
$parameters = array('authentication'=>$authentication, 'id'=>$id);
|
$parameters = array('authentication'=>$authentication, 'id'=>$id);
|
||||||
print __METHOD__." call method ".$WS_METHOD."\n";
|
print __METHOD__." call method ".$WS_METHOD."\n";
|
||||||
try {
|
try {
|
||||||
$result = $this->soapclient->call($WS_METHOD,$parameters,$this->ns,'');
|
$result = $this->soapclient->call($WS_METHOD,$parameters,$this->_ns,'');
|
||||||
} catch(SoapFault $exception) {
|
} catch(SoapFault $exception) {
|
||||||
echo $exception;
|
echo $exception;
|
||||||
$result=0;
|
$result=0;
|
||||||
@ -288,7 +288,7 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
* Use ref_ext to retrieve thirdparty
|
* Use ref_ext to retrieve thirdparty
|
||||||
*
|
*
|
||||||
* @depends testWSThirdpartycreateThirdParty
|
* @depends testWSThirdpartycreateThirdParty
|
||||||
* @return int
|
* @return array thirdparty
|
||||||
*/
|
*/
|
||||||
public function testWSThirdpartygetThirdPartyByRefExt($result)
|
public function testWSThirdpartygetThirdPartyByRefExt($result)
|
||||||
{
|
{
|
||||||
@ -314,7 +314,7 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
$parameters = array('authentication'=>$authentication, 'id'=>'', 'ref'=>'', 'ref_ext'=>'12');
|
$parameters = array('authentication'=>$authentication, 'id'=>'', 'ref'=>'', 'ref_ext'=>'12');
|
||||||
print __METHOD__." call method ".$WS_METHOD."\n";
|
print __METHOD__." call method ".$WS_METHOD."\n";
|
||||||
try {
|
try {
|
||||||
$result = $this->soapclient->call($WS_METHOD,$parameters,$this->ns,'');
|
$result = $this->soapclient->call($WS_METHOD,$parameters,$this->_ns,'');
|
||||||
} catch(SoapFault $exception) {
|
} catch(SoapFault $exception) {
|
||||||
echo $exception;
|
echo $exception;
|
||||||
$result=0;
|
$result=0;
|
||||||
@ -348,7 +348,7 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
*
|
*
|
||||||
* @depends testWSThirdpartycreateThirdParty
|
* @depends testWSThirdpartycreateThirdParty
|
||||||
*
|
*
|
||||||
* @return int
|
* @return array thirdparty
|
||||||
*/
|
*/
|
||||||
public function testWSThirdpartydeleteThirdPartyById($result)
|
public function testWSThirdpartydeleteThirdPartyById($result)
|
||||||
{
|
{
|
||||||
@ -373,7 +373,7 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
$parameters = array('authentication'=>$authentication, 'id'=>$id, 'ref'=>'', 'ref_ext'=>'');
|
$parameters = array('authentication'=>$authentication, 'id'=>$id, 'ref'=>'', 'ref_ext'=>'');
|
||||||
print __METHOD__." call method ".$WS_METHOD."\n";
|
print __METHOD__." call method ".$WS_METHOD."\n";
|
||||||
try {
|
try {
|
||||||
$result = $this->soapclient->call($WS_METHOD,$parameters,$this->ns,'');
|
$result = $this->soapclient->call($WS_METHOD,$parameters,$this->_ns,'');
|
||||||
} catch(SoapFault $exception) {
|
} catch(SoapFault $exception) {
|
||||||
echo $exception;
|
echo $exception;
|
||||||
$result=0;
|
$result=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user