TestClassSDKWrapper
extends WP_UnitTestCase
in package
Test for class SDKWrapper
Table of Contents
- $_expectedResult : string
- $_pMockSDK : onOfficeSDK
- $_pMockWPOptions : WPOptionWrapperTest
- $_pSDKWrapper : SDKWrapper
- prepare() : mixed
- testAddRequestByApiAction() : APIClientActionGeneric
- testConstruct() : mixed
- testGetCache() : mixed
- testSendRequests() : SDKWrapper
- testWithCurlOptions() : mixed
Properties
$_expectedResult
private
string
$_expectedResult
= '{
"actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:read",
"resourceid": "",
"resourcetype": "impressum",
"cacheable": true,
"identifier": "",
"data": {
"meta": {
"cntabsolute": null
},
"records": [
{
"id": "impressum",
"type": null,
"elements": {
"country": "DEU"
}
}
]
},
"status": {
"errorcode": 0,
"message": "OK"
}
}'
$_pMockSDK
private
onOfficeSDK
$_pMockSDK
= null
$_pMockWPOptions
private
WPOptionWrapperTest
$_pMockWPOptions
= null
$_pSDKWrapper
private
SDKWrapper
$_pSDKWrapper
= null
Methods
prepare()
public
prepare() : mixed
Tags
Return values
mixed —testAddRequestByApiAction()
public
testAddRequestByApiAction() : APIClientActionGeneric
Return values
APIClientActionGeneric —testConstruct()
public
testConstruct() : mixed
Return values
mixed —testGetCache()
public
testGetCache() : mixed
Return values
mixed —testSendRequests()
public
testSendRequests(APIClientActionGeneric $pAPIClientActionGeneric) : SDKWrapper
Parameters
- $pAPIClientActionGeneric : APIClientActionGeneric
Tags
Return values
SDKWrapper —testWithCurlOptions()
public
testWithCurlOptions() : mixed