All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions
RedBeanModelMulitpleSameModelRelationsTest Class Reference
Inheritance diagram for RedBeanModelMulitpleSameModelRelationsTest:

Public Member Functions

 testMultipleHasOnesToTheSameModel ()
 testMultipleHasManysToTheSameModel ()
 testAssumptiveLinkWithARelationNameThatIsNotTheModelClassName ()
 testSearchQueryFormulatesProperlyForAssumptiveLink ()
 testMultipleManyManysToTheSameModel ()
 testMultipleManyManysToTheSameModelSearchQueryFormsCorrectly ()
 testMultipleBelongsToTheSameModel ()
 testAreRelationsValidWithOnlyOneAssumptiveLinkAgainstASingleModel ()
 testMoveThisSomewhereElse ()
 testHasOneBelongsToSupportsSpecificLinks ()
- Public Member Functions inherited from BaseTest
 setup ()
 teardown ()

Static Public Member Functions

static getDependentTestModelClassNames ()
- Static Public Member Functions inherited from BaseTest
static setUpBeforeClass ()
static tearDownAfterClass ()
static resetAndPopulateFilesArrayByFilePathAndName ($arrayName, $filePath, $fileName)
static getDependentTestModelClassNames ()
static getReflectedPropertyValue ($object, $propertyName)

Additional Inherited Members

- Static Public Attributes inherited from BaseTest
static $activateDefaultLanguages = false
- Protected Member Functions inherited from BaseTest
 assertWithinTolerance ($expected, $actual, $plusMinus)
 assertWithinPercentage ($expected, $actual, $percentage)
 isDebug ()
- Static Protected Member Functions inherited from BaseTest
static getProtectedMethod ($className, $methodName)

Detailed Description

This test class tests various relationship scenarios where there are 2 relationships pointing to the same model. For example Model A has a relationship b1 that goes to B and also has a relationship b2 that goes to B. This presents new challenges that are tested in this class.

Definition at line 42 of file RedBeanModelMulitpleSameModelRelationsTest.php.

Member Function Documentation

testSearchQueryFormulatesProperlyForAssumptiveLink ( )

Test that search where clause is generated properly when the assumptive link is for a relation with a different name than the model class name testAssumptiveLinkWithARelationNameThatIsNotTheModelClassName

Definition at line 211 of file RedBeanModelMulitpleSameModelRelationsTest.php.

The documentation for this class was generated from the following file:
Generated on Fri Jun 5 2020 07:11:00