Commit a7167728 authored by ZZZ[GONE] frebault's avatar ZZZ[GONE] frebault
Browse files

test GgusSoapService

parent 258b9af8
<?php
namespace GGUSHelpdesk\resources;
use \GGUSHelpdesk\SoapService;
/**
*
* @author Pierre FREBAULT
*/
class TestGgusSoapService extends SoapService
{
public function __construct(array $config, $name)
{
parent::__construct($config, $name);
}
public function createGgusObjectInstance($setDefaultValues = true){
}
/**
* return logical url pointing on a given ticket
* @param <integer> $pLinkId
* @return <string> url
* @author olivier lequeux
*/
public function buildGgusObjectPermaLink($pLinkId)
{
return sprintf('%s?mode=ticket_info&ticket_id=%s', $this->config['urls']['site'], $pLinkId);
}
}
<?php
/**
* Created by PhpStorm.
* User: Pierre FREBAULT
* Date: 03/11/2014
* Time: 11:01
*/
use \GGUSHelpdesk\resources\TestGgusSoapService;
class SoapServiceTest extends PHPUnit_Framework_TestCase {
public function testIniExtendedFields(){
$ss = new TestGgusSoapService(array('urls'=>array('wsdl'=>'www.url.test')), 'testSoapService');
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment