HttpSourceTestFixture

Extends \CakeTestFixture

Base Fixture for using in HttpSource child plugins

package

HttpSource

subpackage

Test.Fixture

Methods

{@inheritdoc}

__construct() 

Delete one record

_truncateOne(array $record) : boolean

Arguments

$record

array

Response

boolean

{@inheritdoc}

create(\DboSource $db) : boolean

Arguments

$db

\DboSource

An instance of the database object used to create the fixture table

Response

boolean

True on success, false on failure

{@inheritdoc}

drop(\DboSource $db) : boolean

Arguments

$db

\DboSource

An instance of the database object used to create the fixture table

Response

boolean

True on success, false on failure

{@inheritdoc}

init() : void
throws

Whe importing from a model that does not exist.

{@inheritdoc}

insert(\DboSource $db) : boolean

Arguments

$db

\DboSource

An instance of the database into which the records will be inserted

Response

boolean

on success or if there are no records to insert, or false on failure

{@inheritdoc}

truncate(\DboSource $db) : boolean

Arguments

$db

\DboSource

A reference to a db instance

Response

boolean

Properties

Model name

model : string
var

Type(s)

string

Records

records : array
var

Type(s)

array

Model

_Model : \Model
var

Type(s)

\Model