RedBeanModelTest Class Reference

Inheritance diagram for RedBeanModelTest:
BaseTest

Public Member Functions

 testA ()
 testAAAttributeDoesntValidateJunkAsBoolean1 ()
 testAAAttributeSavesJunkAsBooleanIfWeExplicitlyDontValidate ()
 testGetAll ()
 testGetRange ()
 testGetAllWithSorting ()
 testGetRangeWithSorting ()
 testB ()
 testC ()
 testCWithoutExplicitEAndG ()
 testD ()
 testGetAttributeLabel ()
 testGetValidatorsAndIsAttributeRequired ()
 testGetValidatorsAndGetValidatorListWithScenarios ()
 testAddErrorAddErrorsHasErrorsAndGetErrors ()
 testValidateAndGetErrors ()
 testGetErrorsDrillingDownRelatedModels ()
 testGetErrorsDrillingDownRelatedOneToManyModels ()
 testBulkSetAndGet ()
 testRedBeanModelUniqueValidator ()
 testThatUniqueValidatorCatchesTheNotUniqueBeforeRedBeanDoes ()
 testRedBeanModelDefaultValueValidator ()
 testRedBeanModelNumberValidator ()
 testDefaultedPropertySavedAsIs ()
 testDefaultedPropertyModifiedAndSaved ()
 testDefaultedAndRemovedAndSaved ()
 testModelWithPropertyNamedLikeSqlKeyword ()
 testZeros ()
 testNull ()
 testBools ()
 testRequiredRelatedModel ()
 testParentModelsOnNewModelsDoNotGetRowsUntilTheyAreSaved ()
 testIdIsReadOnly ()
 testReadOnlyAttribute ()
 testIsSame ()
 testSelfRelatingThings ()
 testDownCast ()
 testDownCastToSameType ()
 testDownCastToWrongType ()
 testSetAttributeWithEmptyValue ()
 testDateTime ()
 testMakeSubsetOrCountSqlQueryWithExtraSelectParts ()
 testBlobAttribute ()
 testModelCachesProperlyAndValidationWorksBasedOnAllNecessaryPropertiesCaching ()
 testSwappingSameRelationModelsForSaving ()

Static Public Member Functions

static getDependentTestModelClassNames ()
static tearDownAfterClass ()

Detailed Description

Definition at line 61 of file RedBeanModelTest.php.


Member Function Documentation

testAAAttributeDoesntValidateJunkAsBoolean1 (  ) 

testA

Definition at line 110 of file RedBeanModelTest.php.

testAAAttributeSavesJunkAsBooleanIfWeExplicitlyDontValidate (  ) 

testA

Definition at line 130 of file RedBeanModelTest.php.

testGetAll (  ) 

testA

Definition at line 147 of file RedBeanModelTest.php.

testGetRange (  ) 

testGetAll

Definition at line 170 of file RedBeanModelTest.php.

testGetAllWithSorting (  ) 

testGetRange

Definition at line 183 of file RedBeanModelTest.php.

testGetRangeWithSorting (  ) 

testGetAllWithSorting

Definition at line 263 of file RedBeanModelTest.php.

testB (  ) 

testA

Definition at line 325 of file RedBeanModelTest.php.

testC (  ) 

testB

Definition at line 343 of file RedBeanModelTest.php.

testCWithoutExplicitEAndG (  ) 

testC

Definition at line 382 of file RedBeanModelTest.php.

testD (  ) 

testCWithoutExplicitEAndG

Definition at line 409 of file RedBeanModelTest.php.

testGetValidatorsAndIsAttributeRequired (  ) 

testA

Definition at line 442 of file RedBeanModelTest.php.

testAddErrorAddErrorsHasErrorsAndGetErrors (  ) 

testGetValidatorsAndIsAttributeRequired

Definition at line 578 of file RedBeanModelTest.php.

testValidateAndGetErrors (  ) 

testAddErrorAddErrorsHasErrorsAndGetErrors

Definition at line 642 of file RedBeanModelTest.php.

testGetErrorsDrillingDownRelatedModels (  ) 

testC

Definition at line 707 of file RedBeanModelTest.php.

testGetErrorsDrillingDownRelatedOneToManyModels (  ) 

testGetErrorsDrillingDownRelatedModels

Definition at line 765 of file RedBeanModelTest.php.

testRedBeanModelUniqueValidator (  ) 

testValidateAndGetErrors

Definition at line 865 of file RedBeanModelTest.php.

testThatUniqueValidatorCatchesTheNotUniqueBeforeRedBeanDoes (  ) 

testRedBeanModelUniqueValidator

Definition at line 899 of file RedBeanModelTest.php.

testRedBeanModelDefaultValueValidator (  ) 

testValidateAndGetErrors

Definition at line 943 of file RedBeanModelTest.php.

testRedBeanModelNumberValidator (  ) 

testValidateAndGetErrors

Definition at line 957 of file RedBeanModelTest.php.

testDefaultedPropertySavedAsIs (  ) 

testA

Definition at line 1038 of file RedBeanModelTest.php.

testDefaultedPropertyModifiedAndSaved (  ) 

testDefaultedPropertySavedAsIs

Definition at line 1062 of file RedBeanModelTest.php.

testDefaultedAndRemovedAndSaved (  ) 

testDefaultedPropertyModifiedAndSaved

Definition at line 1085 of file RedBeanModelTest.php.

testModelWithPropertyNamedLikeSqlKeyword (  ) 

testA

Definition at line 1105 of file RedBeanModelTest.php.

testZeros (  ) 

testA

Definition at line 1119 of file RedBeanModelTest.php.

testNull (  ) 

testZeros

Definition at line 1133 of file RedBeanModelTest.php.

testBools (  ) 

testA

Definition at line 1147 of file RedBeanModelTest.php.

testRequiredRelatedModel (  ) 

testC

Definition at line 1175 of file RedBeanModelTest.php.

testParentModelsOnNewModelsDoNotGetRowsUntilTheyAreSaved (  ) 

testB

Definition at line 1194 of file RedBeanModelTest.php.

testIdIsReadOnly (  ) 

NotSupportedException

Definition at line 1205 of file RedBeanModelTest.php.

testReadOnlyAttribute (  ) 

NotSupportedException

Definition at line 1214 of file RedBeanModelTest.php.

testDownCast (  ) 

testC

Definition at line 1301 of file RedBeanModelTest.php.

testDownCastToSameType (  ) 

testC

Definition at line 1410 of file RedBeanModelTest.php.

testDownCastToWrongType (  ) 

testC NotFoundException

Definition at line 1427 of file RedBeanModelTest.php.

testModelCachesProperlyAndValidationWorksBasedOnAllNecessaryPropertiesCaching (  ) 

Issue came up because attributeNamesNotBelongsToOrManyMany wasn't being cached and as a result an existing model, if you tried to save it, it would not validate correctly and allow required attributes to pass.

Definition at line 1516 of file RedBeanModelTest.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Mar 22 07:10:29 2017