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 ()
 testRelatedValidation ()

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 112 of file RedBeanModelTest.php.

testAAAttributeSavesJunkAsBooleanIfWeExplicitlyDontValidate (  ) 

testA

Definition at line 132 of file RedBeanModelTest.php.

testGetAll (  ) 

testA

Definition at line 149 of file RedBeanModelTest.php.

testGetRange (  ) 

testGetAll

Definition at line 172 of file RedBeanModelTest.php.

testGetAllWithSorting (  ) 

testGetRange

Definition at line 185 of file RedBeanModelTest.php.

testGetRangeWithSorting (  ) 

testGetAllWithSorting

Definition at line 265 of file RedBeanModelTest.php.

testB (  ) 

testA

Definition at line 327 of file RedBeanModelTest.php.

testC (  ) 

testB

Definition at line 345 of file RedBeanModelTest.php.

testCWithoutExplicitEAndG (  ) 

testC

Definition at line 384 of file RedBeanModelTest.php.

testD (  ) 

testCWithoutExplicitEAndG

Definition at line 411 of file RedBeanModelTest.php.

testGetValidatorsAndIsAttributeRequired (  ) 

testA

Definition at line 444 of file RedBeanModelTest.php.

testAddErrorAddErrorsHasErrorsAndGetErrors (  ) 

testGetValidatorsAndIsAttributeRequired

Definition at line 580 of file RedBeanModelTest.php.

testValidateAndGetErrors (  ) 

testAddErrorAddErrorsHasErrorsAndGetErrors

Definition at line 644 of file RedBeanModelTest.php.

testGetErrorsDrillingDownRelatedModels (  ) 

testC

Definition at line 709 of file RedBeanModelTest.php.

testGetErrorsDrillingDownRelatedOneToManyModels (  ) 

testGetErrorsDrillingDownRelatedModels

Definition at line 767 of file RedBeanModelTest.php.

testRedBeanModelUniqueValidator (  ) 

testValidateAndGetErrors

Definition at line 867 of file RedBeanModelTest.php.

testThatUniqueValidatorCatchesTheNotUniqueBeforeRedBeanDoes (  ) 

testRedBeanModelUniqueValidator

Definition at line 901 of file RedBeanModelTest.php.

testRedBeanModelDefaultValueValidator (  ) 

testValidateAndGetErrors

Definition at line 945 of file RedBeanModelTest.php.

testRedBeanModelNumberValidator (  ) 

testValidateAndGetErrors

Definition at line 959 of file RedBeanModelTest.php.

testDefaultedPropertySavedAsIs (  ) 

testA

Definition at line 1040 of file RedBeanModelTest.php.

testDefaultedPropertyModifiedAndSaved (  ) 

testDefaultedPropertySavedAsIs

Definition at line 1064 of file RedBeanModelTest.php.

testDefaultedAndRemovedAndSaved (  ) 

testDefaultedPropertyModifiedAndSaved

Definition at line 1087 of file RedBeanModelTest.php.

testModelWithPropertyNamedLikeSqlKeyword (  ) 

testA

Definition at line 1107 of file RedBeanModelTest.php.

testZeros (  ) 

testA

Definition at line 1121 of file RedBeanModelTest.php.

testNull (  ) 

testZeros

Definition at line 1135 of file RedBeanModelTest.php.

testBools (  ) 

testA

Definition at line 1149 of file RedBeanModelTest.php.

testRequiredRelatedModel (  ) 

testC

Definition at line 1177 of file RedBeanModelTest.php.

testParentModelsOnNewModelsDoNotGetRowsUntilTheyAreSaved (  ) 

testB

Definition at line 1196 of file RedBeanModelTest.php.

testIdIsReadOnly (  ) 

NotSupportedException

Definition at line 1207 of file RedBeanModelTest.php.

testReadOnlyAttribute (  ) 

NotSupportedException

Definition at line 1216 of file RedBeanModelTest.php.

testDownCast (  ) 

testC

Definition at line 1303 of file RedBeanModelTest.php.

testDownCastToSameType (  ) 

testC

Definition at line 1412 of file RedBeanModelTest.php.

testDownCastToWrongType (  ) 

testC NotFoundException

Definition at line 1429 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 1518 of file RedBeanModelTest.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Jul 22 07:11:05 2019