PHP Класс JsonDialectTest, dialect

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
testCustomGetter ( ) Test the ability to allow models to provide their own custom attribute getters for json attributes
testCustomSetter ( ) Test the ability to allow models to provide their own custom attribute getters for json attributes
testDisableHiddenJsonColumns ( ) Assert that the json columns show up when configured to do so
testEnableHiddenJsonAttributes ( ) Assert that the json attributes do not show up when configured to do so
testGetDirtyJson ( ) Assert that defined JSON attributes are returned in the getDirty() response when expected.
testGetMutator ( ) Assert that attributes with JSON operators are properly recognized as JSON attributes
testHintedJsonColumns ( ) Assert that defined JSON attributes are properly parsed and exposed through mutators.
testInspectJsonColumns ( ) Assert that defined JSON attributes are properly parsed and exposed through mutators.
testInvalidHint ( ) Assert that an exception is thrown when given invalid json as a structure hint
testInvalidJsonAttribute ( ) Assert that an exception is thrown when given invalid json as a structure hint
testNullJsonAttribute ( ) Assert that no exception is thrown when given null json
testSetArrayAttribute ( ) Assert that JSON array attributes can be set through mutators
testSetAttribute ( ) Assert that JSON attributes can be set through mutators

Описание методов

testCustomGetter() публичный Метод

Test the ability to allow models to provide their own custom attribute getters for json attributes
public testCustomGetter ( )

testCustomSetter() публичный Метод

Test the ability to allow models to provide their own custom attribute getters for json attributes
public testCustomSetter ( )

testDisableHiddenJsonColumns() публичный Метод

Assert that the json columns show up when configured to do so

testEnableHiddenJsonAttributes() публичный Метод

Assert that the json attributes do not show up when configured to do so

testGetDirtyJson() публичный Метод

Assert that defined JSON attributes are returned in the getDirty() response when expected.
public testGetDirtyJson ( )

testGetMutator() публичный Метод

Assert that attributes with JSON operators are properly recognized as JSON attributes
public testGetMutator ( )

testHintedJsonColumns() публичный Метод

Assert that defined JSON attributes are properly parsed and exposed through mutators.

testInspectJsonColumns() публичный Метод

Assert that defined JSON attributes are properly parsed and exposed through mutators.

testInvalidHint() публичный Метод

Assert that an exception is thrown when given invalid json as a structure hint
public testInvalidHint ( )

testInvalidJsonAttribute() публичный Метод

Assert that an exception is thrown when given invalid json as a structure hint

testNullJsonAttribute() публичный Метод

Assert that no exception is thrown when given null json

testSetArrayAttribute() публичный Метод

Assert that JSON array attributes can be set through mutators

testSetAttribute() публичный Метод

Assert that JSON attributes can be set through mutators
public testSetAttribute ( )