PHP Class lithium\tests\cases\data\ModelTest

Inheritance: extends lithium\test\Unit
Show file Open project: unionofrad/lithium

Protected Properties

Property Type Description
$_altSchema

Public Methods

Method Description
setUp ( )
tearDown ( )
testAttributesInheritanceWithObject ( )
testClassInitialization ( )
testCountSyntax ( ) Tests that varying count syntaxes all produce the same query operation (i.e.
testCountSyntaxWithoutConditions ( ) Test that magic count condition-less syntax works.
testCreateCollection ( )
testCustomAttributesInheritance ( )
testCustomFindMethods ( )
testCustomFinder ( )
testCustomValidationCriteria ( )
testDefaultValuesFromSchema ( )
testDelete ( )
testErrorsIsClearedOnEachValidates ( )
testFieldIntrospection ( )
testFieldName ( )
testFilteredFind ( )
testFindByObjectKey ( ) Tests that objects can be passed as keys to Model::find() and be properly translated to query conditions.
testFindFirst ( )
testImplicitKeyFind ( )
testInitializationInheritance ( )
testInstanceMethods ( )
testKeyGeneration ( )
testLazyLoad ( )
testLazyMetadataInit ( )
testLiveConfiguration ( )
testMagicFinders ( )
testMetaInformation ( )
testModelWithNoBackend ( )
testMultiRecordDelete ( )
testMultiRecordUpdate ( )
testOverrideMeta ( )
testRelationFromFieldName ( )
testRelationshipIntrospection ( ) Tests introspecting the relationship settings for the model as a whole, various relationship types, and individual relationships.
testRespondsTo ( )
testRespondsToInstanceMethod ( )
testRespondsToParentCall ( )
testSave ( )
testSaveFailedWithValidationByModelDefinition ( )
testSaveFailedWithValidationByModelDefinitionAndTriggeredCustomEvents ( )
testSaveWithFailedValidation ( )
testSaveWithNoCallbacks ( )
testSaveWithValidationAndWhitelist ( )
testSchemaInheritance ( )
testSchemaLoading ( )
testSettingNestedObjectDefaults ( )
testSimpleFind ( )
testSimpleFindFirst ( ) Tests the find 'first' filter on a simple record set.
testSimpleFindList ( )
testSimpleRecordCreation ( )
testValidateWithRequiredFalse ( )
testValidateWithRequiredNull ( )
testValidateWithRequiredTrue ( )
testValidatesCustomEventFalse ( )
testValidatesCustomEventValid ( )
testValidatesCustomEventsFalse ( )
testValidatesCustomEventsFirstValid ( )
testValidatesCustomEventsValid ( )
testValidatesEmailIsNotEmpty ( )
testValidatesEmailIsValid ( )
testValidatesFalse ( )
testValidatesTitle ( )
testValidatesWithWhitelist ( )
testValidationInheritance ( )
testWhitelistWhenLockedUsingCreateForData ( )
testWhitelistWhenLockedUsingCreateWithValidAndSaveForInvalidData ( )
testWhitelistWhenLockedUsingSaveForData ( )

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testAttributesInheritanceWithObject() public method

testClassInitialization() public method

testCountSyntax() public method

Model::count(...), Model::find('count', ...) etc).
public testCountSyntax ( )

testCountSyntaxWithoutConditions() public method

Test that magic count condition-less syntax works.

testCreateCollection() public method

testCustomAttributesInheritance() public method

testCustomFindMethods() public method

testCustomFinder() public method

public testCustomFinder ( )

testCustomValidationCriteria() public method

testDefaultValuesFromSchema() public method

testDelete() public method

public testDelete ( )

testErrorsIsClearedOnEachValidates() public method

testFieldIntrospection() public method

testFieldName() public method

public testFieldName ( )

testFilteredFind() public method

public testFilteredFind ( )

testFindByObjectKey() public method

Tests that objects can be passed as keys to Model::find() and be properly translated to query conditions.
public testFindByObjectKey ( )

testFindFirst() public method

public testFindFirst ( )

testImplicitKeyFind() public method

public testImplicitKeyFind ( )

testInitializationInheritance() public method

testInstanceMethods() public method

public testInstanceMethods ( )

testKeyGeneration() public method

public testKeyGeneration ( )

testLazyLoad() public method

public testLazyLoad ( )

testLazyMetadataInit() public method

testLiveConfiguration() public method

testMagicFinders() public method

public testMagicFinders ( )

testMetaInformation() public method

public testMetaInformation ( )

testModelWithNoBackend() public method

testMultiRecordDelete() public method

testMultiRecordUpdate() public method

testOverrideMeta() public method

public testOverrideMeta ( )

testRelationFromFieldName() public method

testRelationshipIntrospection() public method

Tests introspecting the relationship settings for the model as a whole, various relationship types, and individual relationships.

testRespondsTo() public method

public testRespondsTo ( )

testRespondsToInstanceMethod() public method

testRespondsToParentCall() public method

testSave() public method

public testSave ( )

testSaveFailedWithValidationByModelDefinition() public method

testSaveFailedWithValidationByModelDefinitionAndTriggeredCustomEvents() public method

testSaveWithFailedValidation() public method

testSaveWithNoCallbacks() public method

testSaveWithValidationAndWhitelist() public method

testSchemaInheritance() public method

testSchemaLoading() public method

public testSchemaLoading ( )

testSettingNestedObjectDefaults() public method

testSimpleFind() public method

public testSimpleFind ( )

testSimpleFindFirst() public method

Tests the find 'first' filter on a simple record set.
public testSimpleFindFirst ( )

testSimpleFindList() public method

public testSimpleFindList ( )

testSimpleRecordCreation() public method

testValidateWithRequiredFalse() public method

testValidateWithRequiredNull() public method

testValidateWithRequiredTrue() public method

testValidatesCustomEventFalse() public method

testValidatesCustomEventValid() public method

testValidatesCustomEventsFalse() public method

testValidatesCustomEventsFirstValid() public method

testValidatesCustomEventsValid() public method

testValidatesEmailIsNotEmpty() public method

testValidatesEmailIsValid() public method

testValidatesFalse() public method

public testValidatesFalse ( )

testValidatesTitle() public method

public testValidatesTitle ( )

testValidatesWithWhitelist() public method

testValidationInheritance() public method

testWhitelistWhenLockedUsingCreateForData() public method

testWhitelistWhenLockedUsingCreateWithValidAndSaveForInvalidData() public method

testWhitelistWhenLockedUsingSaveForData() public method

Property Details

$_altSchema protected property

protected $_altSchema