MessageTest

Extends \CakeTestCase

MessageTest

package

LocalizationTest

subpackage

Model

Methods

Data provider for testExport

exportProvider() : array

Response

array

Data provider for testGetById

getByIdProvider() : array

Response

array

Data provider for testSaveAssociatedChanged

saveAssociatedChangedProvider() : array

Response

array

{@inheritdoc}

setUp() 

Test export all messages

testExport(array $findData, array $phpContent, array $jsContent) 
dataProvider

exportProvider

Arguments

$findData

array

$phpContent

array

$jsContent

array

Test get message by id with translations

testGetById(array $findResult, array $result) 
dataProvider

getByIdProvider

Arguments

$findResult

array

$result

array

Test save associated with update only changed data

testSaveAssociatedChanged(array $data, array $dataFromDB, array $dataToSave) 
dataProvider

saveAssociatedChangedProvider

Arguments

$data

array

$dataFromDB

array

$dataToSave

array

Test data validation

testValidation(array $data, array $validationErrors) 
dataProvider

validationProvider

Arguments

$data

array

$validationErrors

array

Data provider for testValidation

validationProvider() : array

Response

array

Properties

{@inheritdoc}

fixtures : array
var

Type(s)

array