HttpSourceEndpointTest

Extends \CakeTestCase

HttpSourceEndpointTest

package

HttpSourceTest

subpackage

Config

Methods

Data provider for testBuildRequest

buildRequestProvider() : array

Response

array

Data provider for testMethod

methodProvider() : array

Response

array

Data provider for testProcessFields

processFieldsProvider() : array

Response

array

Data provider for testProcessResult

processResultProvider() : array

Response

array

Data provider for testRequiredOptionalDefaultsConditions

requiredOptionalDefaultsConditionsProvider() : \type

Response

\type

Data provider for testSchema

schemaProvider() : array

Response

array

{@inheritdoc}

setUp() 

Test buildRequest

testBuildRequest(array $conditions, string $method, string $path, array $readParams, array $queryData, array $request) 
dataProvider

buildRequestProvider

Arguments

$conditions

array

$method

string

$path

string

$readParams

array

$queryData

array

$request

array

Test cache name

testCacheName() 

Test condition

testCondition() 

Test default values

testDefaultValues() 

Test field

testField() 

Test id

testId() 

Test CRUD method

testMethod(string $method) 
dataProvider

methodProvider

Arguments

$method

string

Test path

testPath() 

Test processFields

testProcessFields(array $fields, array $results, array $expectedResults) 
dataProvider

processFieldsProvider

Arguments

$fields

array

$results

array

$expectedResults

array

Test process result

testProcessResult(\HtpSourceResult $Result, array $result, array $expectedResult) 
dataProvider

processResultProvider

Arguments

$Result

\HtpSourceResult

$result

array

$expectedResult

array

Test queryBuilder

testQueryBuilder() 

Test read params

testReadParams() 

Test requestSplitter

testRequestSplitter() 

Test required/optional/defaults conditions

testRequiredOptionalDefaultsConditions(array $conditions, array $required, array $optional, array $defaults) 
dataProvider

requiredOptionalDefaultsConditionsProvider

Arguments

$conditions

array

$required

array

$optional

array

$defaults

array

Test responseJoiner

testResponseJoiner() 

Test result

testResult() 

Test schema

testSchema(array $conditions, array $schema) 
dataProvider

schemaProvider

Arguments

$conditions

array

$schema

array

Test table

testTable() 

Properties

Endpoint

Endpoint : \HttpSourceEndpoint

HttpSourceEndpoint

Type(s)

\HttpSourceEndpoint