HttpSourceConnectionTest

Extends \CakeTestCase

HttpSourceConnectionTest

package

HttpSourceTest

subpackage

Model.Datasource

Methods

Data provider for testAddOauth

addAuthProvider() : array

Response

array

Data provider for construct

constructProvider() : array

Response

array

Data provider for testDecoders

decodersProvider() : array

Response

array

Data provider for testDefaultDecoders

defaultDecodersProvider() : array

Response

array

Data provider fortestGetNumRows

getNumRowsProvider() : array

Response

array

Data provider for testQuote

quoteProvider() : array

Response

array

Data provider for testRequestAttempt

requestAttemptProvider() : array

Response

array

Data provider for testRequest

requestProvider() : array

Response

array

{@inheritdoc}

setUp() 

Test adding oauth to request

testAddOauth(string $name, array $request, array $result, array $config, array $credentials, string $exception) 
dataProvider

addAuthProvider

Arguments

$name

string

$request

array

$result

array

$config

array

$credentials

array

$exception

string

TEst constructor

testConstruct(array $config, string $transportName, array $transportConfig, \HttpSocket $Transport = null) 
dataProvider

constructProvider

Arguments

$config

array

$transportName

string

$transportConfig

array

$Transport

\HttpSocket

Test set/get credentials

testCredentials() 

Test get/set decoders

testDecoders(array $setDecoders, array $getDecoders, string $exception) 
dataProvider

decodersProvider

Arguments

$setDecoders

array

$getDecoders

array

$exception

string

Test default decoders

testDefaultDecoders(string $contentType, string $encoded, array $decoded) 
dataProvider

defaultDecodersProvider

Arguments

$contentType

string

$encoded

string

$decoded

array

Test disconnect

testDisconnect() 

Test get num rows

testGetNumRows(mixed $data, integer $numRows) 
dataProvider

getNumRowsProvider

Arguments

$data

mixed

$numRows

integer

Test quote

testQuote(mixed $data, integer $type) 
dataProvider

quoteProvider

Arguments

$data

mixed

$type

integer

Test request

testRequest(array $request, \array_bool $response, array $data, array $config, string $authMethod) 
dataProvider

requestProvider

Arguments

$request

array

$response

\array_bool

$data

array

$config

array

$authMethod

string

Test request attempt

testRequestAttempt(array $request, array|boolean $response, array $attempts, array $config, string $lastError, integer $debugLevel = null) 
dataProvider

requestAttemptProvider

Arguments

$request

array

$response

array|boolean

$attempts

array

$config

array

$lastError

string

$debugLevel

integer