HttpSourceModelTest

Extends \CakeTestCase

HttpSourceModelTest

package

HttpSourceTest

subpackage

Model

Methods

Data provider for testExists

existsProvider() : array

Response

array

Data provider for testHasField

hasFieldProvider() : array

Response

array

{@inheritdoc}

setUp() 

Test exists

testExists(string|\id $id, string|\id $modelId, array $conditions, boolean $force, boolean $exists) 
dataProvider

existsProvider

Arguments

$id

string|\id

$modelId

string|\id

$conditions

array

$force

boolean

$exists

boolean

Test hasField

testHasField(string $name, boolean $checkVirtual) 
dataProvider

hasFieldProvider

Arguments

$name

string

$checkVirtual

boolean

Test setCredentials

testSetCredentials() 

Test setTransactionParams

testTransactionParams() 

Test transactions

testTransactions(array $params, array $transactions, array $result, boolean $autoTransactions) 
dataProvider

transactionsProvider

Arguments

$params

array

$transactions

array

$result

array

$autoTransactions

boolean

Test update

testUpdate(array $data, boolean $validate, array $fieldList) 
dataProvider

updateProvider

Arguments

$data

array

$validate

boolean

$fieldList

array

Data source for testTransactions

transactionsProvider() : array

Response

array

Data provider for testUpdate

updateProvider() : array

Response

array