23 $this->_version =
'V1';
24 $this->_restResourcePath =
"/{$this->_version}/testmodule4/";
36 'resourcePath' => $this->_restResourcePath . $itemId,
41 $this->assertEquals($itemId,
$item[
'entity_id'],
'id field returned incorrectly');
42 $this->assertEquals(
$name,
$item[
'name'],
'name field returned incorrectly');
54 'resourcePath' => $this->_restResourcePath . $itemId,
59 $this->assertEquals($itemId,
$item[
'entity_id'],
'id field returned incorrectly');
60 $this->assertEquals(
$name,
$item[
'name'],
'name field returned incorrectly');
72 'resourcePath' => $this->_restResourcePath . $itemId .
'/nested',
77 $this->assertEquals($itemId,
$item[
'entity_id'],
'id field returned incorrectly');
78 $this->assertEquals(
$name,
$item[
'name'],
'name field returned incorrectly');
86 'resourcePath' =>
"{$this->_restResourcePath}scalar/{$id}",
90 $this->assertEquals(
$id, $this->
_webApiCall($serviceInfo),
'Scalar service output is serialized incorrectly.');
98 'resourcePath' =>
"{$this->_restResourcePath}extensibleDataObject/{$id}",
108 $this->assertEquals(
$id,
$item[
'entity_id'],
'id field returned incorrectly');
109 $this->assertEquals(
$name,
$item[
'name'],
'name field returned incorrectly');
_markTestAsRestOnly($message=null)
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
testNestedDataObjectCall()
if(!isset($_GET['name'])) $name