HttpSourceTest

Extends \CakeTestCase

HttpSourceTest

package

HttpSourceTest

subpackage

Model.Datasource

Methods

Data provider for testAfterRequest

afterRequestProvider() : array

Response

array

Data provider for testBeforeRequest

beforeRequestProvider() : array

Response

array

Data provider for testCalculate

calculateProvider() : array

Response

array

Data provider for

constructProvider() : array

Response

array

Data provider for testCreate

createProvider() : array

Response

array

Data provider for testCreateSchema

createSchemaProvider() : array

Response

array

Data provider for testDelete

deleteProvider() : array

Response

array

Data provider for testDropSchema

dropSchemaProvider() : array

Response

array

Data provider for testExecute

executeProvider() : array

Response

array

Data provider for testExists

existsProvider() : array

Response

array

Data provider for testGetRequestLog

getRequestLogProvider() : array

Response

array

Data provider for testJoinResponses

joinResponsesProvider() : array

Response

array

Data provider for testLogRequest

logRequestProvider() : array

Response

array

Data provider for testQuery

queryProvider() : array

Response

array

Data provider for testRead

readProvider() : array

Response

array

Data provider for testRequestFlow

requestFlowProvider() : array

Response

array

{@inheritdoc}

setUp() 

Data provider for testShowLog

showLogProvider() : array

Response

array

Data provider for testSingleRequest

singleRequestProvider() : array

Response

array

Data provider for testSplitRequest

splitRequestProvider() : array

Response

array

Data provider for testSwapTokens

swapTokensProvider() : array

Response

array

{@inheritdoc}

tearDown() 

Test afterRequest

testAfterRequest(array $data, array $result, string $requestMethod, array $queryData, \HttpSourceEndpoint $Endpoint = null) 
dataProvider

afterRequestProvider

Arguments

$data

array

$result

array

$requestMethod

string

$queryData

array

Test beforeRequest

testBeforeRequest(string $requestMethod) 
dataProvider

beforeRequestProvider

Arguments

$requestMethod

string

Test calculate

testCalculate(string $func, string $result, string $exception) 
dataProvider

calculateProvider

Arguments

$func

string

$result

string

$exception

string

Test construct

testConstruct(array $sourceConfig, array $config, string|\HttpSourceConnection|null $Connection, string $exception, integer $debugLevel) 
dataProvider

constructProvider

Arguments

$sourceConfig

array

$config

array

$Connection

string|\HttpSourceConnection|null

$exception

string

$debugLevel

integer

Test create

testCreate(\Model $Model, array $fields, array $values, array $result, array $request, string $exception) 
dataProvider

createProvider

Arguments

$Model

\Model

$fields

array

$values

array

$result

array

$request

array

$exception

string

Test create schema

testCreateSchema(array $schema, array $result, string $tableName) 
dataProvider

createSchemaProvider

Arguments

$schema

array

$result

array

$tableName

string

Test credentials

testCredentials() 

Test decoders

testDecoders() 

Test delete

testDelete(\Model $Model, array $conditions, array $result, array $request) 
dataProvider

deleteProvider

Arguments

$Model

\Model

$conditions

array

$result

array

$request

array

Test describe

testDescribe() 

Test drop schema

testDropSchema(array $schema, array $result, string $tableName) 
dataProvider

dropSchemaProvider

Arguments

$schema

array

$result

array

$tableName

string

Test execute

testExecute(array $request, array $result) 
dataProvider

executeProvider

Arguments

$request

array

$result

array

Test exists

testExists(\Model $Model, array $conditions, array $result, array $request, boolean $endpointConfigured) 
dataProvider

existsProvider

Arguments

$Model

\Model

$conditions

array

$result

array

$request

array

$endpointConfigured

boolean

Test getRequestLog

testGetRequestLog(string $query, string $error, integer $affected, integer $numRows, integer $took, array $result) 
dataProvider

getRequestLogProvider

Arguments

$query

string

$error

string

$affected

integer

$numRows

integer

$took

integer

$result

array

Test join responses

testJoinResponses(array $request, array $response, \HttpSourceEndpoint $Endpoint = null) 
dataProvider

joinResponsesProvider

Arguments

$request

array

$response

array

Test list sources

testListSources() 

Test logRequest ans getLog

testLogRequest(array $logs, array $result) 
dataProvider

logRequestProvider

Arguments

$logs

array

$result

array

Test no query cache

testNoQueryCache() 

Test query

testQuery(array $request, mixed $otherArg) 
dataProvider

queryProvider

Arguments

$request

array

$otherArg

mixed

Test query cache

testQueryCache() 

Test read

testRead(\Model $Model, array $queryData, integer $recursive, array $result, boolean $cached, array $request) 
dataProvider

readProvider

Arguments

$Model

\Model

$queryData

array

$recursive

integer

$result

array

$cached

boolean

$request

array

Test request method flow

testRequestFlow(\Model $Model = null, string|array $requestData = null, string $requestMethod = null, array $request = null) 
dataProvider

requestFlowProvider

Arguments

$Model

\Model

$requestData

string|array

$requestMethod

string

$request

array

Test showLog

testShowLog(array $logs, boolean $sorted, boolean $html, array $result) 
dataProvider

showLogProvider

Arguments

$logs

array

$sorted

boolean

$html

boolean

$result

array

Test single request

testSingleRequest(integer $debug, array $request, array $requestFull, array $response, array $responseResult, boolean $asModel, string $requestMethod, array $config, array $connectionData, string $log, \HttpSourceEndpoint $Endpoint = null) 
dataProvider

singleRequestProvider

Arguments

$debug

integer

$request

array

$requestFull

array

$response

array

$responseResult

array

$asModel

boolean

$requestMethod

string

$config

array

$connectionData

array

$log

string

Test request splitter

testSplitRequest(array $request, array $response, \HttpSourceEndpoint $Endpoint = null) 
dataProvider

splitRequestProvider

Arguments

$request

array

$response

array

Test swapTokens

testSwapTokens(array $request, array $requestResult) 
dataProvider

swapTokensProvider

Arguments

$request

array

$requestResult

array

Test transaction params

testTransactionParams() 

Test transactions

testTransactions() 

Test update

testUpdate(\Model $Model, array $fields, array $values, array $conditions, array $result, array $request) 
dataProvider

updateProvider

Arguments

$Model

\Model

$fields

array

$values

array

$conditions

array

$result

array

$request

array

Data provider for testUpdate

updateProvider() : array

Response

array