ModelRelationsAndAttributesToReportAdapterTest Class Reference

Inheritance diagram for ModelRelationsAndAttributesToReportAdapterTest:
ZurmoBaseTest BaseTest

Public Member Functions

 setup ()
 testIsDisplayAttributeMadeViaSelect ()
 testGetAllRelations ()
 testGetHasManyBelongsToRelations ()
 testPassingPrecedingRelationThatHasAssumptiveLinkIsProperlyHandled ()
 testGetAllReportableRelations ()
 testGetAvailableRelationsDoesNotCauseFeedbackLoop ()
 testGetReportableAttributes ()
 testGetInferredRelationsData ()
 testGetInferredRelationsDataWithPrecedingModel ()
 testGetDerivedRelationsViaCastedUpModelDataWithPrecedingModel ()
 testGetAvailableAttributesForRowsAndColumnsFilters ()
 testGetAvailableAttributesForRowsAndColumnsDisplayColumns ()
 testGetAvailableAttributesForRowsAndColumnsOrderBys ()
 testGetAvailableAttributesForSummationFilters ()
 testGetAvailableAttributesForSummationDisplayAttributes ()
 testGroupingOnDifferentModelAndMakingSureCorrectDisplayAttributesAreAvailable ()
 testGetAvailableAttributesForSummationOrderBys ()
 testGetAvailableAttributesForSummationOrderBysThatAreDisplayCalculations ()
 testGetAvailableAttributesForSummationGroupBys ()
 testGetAvailableAttributesForSummationDrillDownDisplayAttributes ()
 testGetAvailableAttributesForMatrixFilters ()
 testGetAvailableAttributesForMatrixGroupBys ()
 testGetAvailableAttributesForMatrixDisplayAttributes ()
 testIsRelation ()
 testIsRelationASingularRelation ()
 testGetFilterValueElementTypeForNonStatefulAttributes ()
 testGetFilterValueElementTypeForAStatefulAttribute ()
 testGetFilterValueElementType ()
 testGetAvailableOperatorsType ()

Static Public Member Functions

static setUpBeforeClass ()

Detailed Description

Definition at line 37 of file ModelRelationsAndAttributesToReportAdapterTest.php.


Member Function Documentation

testGetHasManyBelongsToRelations (  ) 

testGetAllRelations Make sure HAS_MANY_BELONGS_TO relations show up

Definition at line 87 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testPassingPrecedingRelationThatHasAssumptiveLinkIsProperlyHandled (  ) 

testGetHasManyBelongsToRelations

Definition at line 107 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAllReportableRelations (  ) 

testPassingPrecedingRelationThatHasAssumptiveLinkIsProperlyHandled

Definition at line 122 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableRelationsDoesNotCauseFeedbackLoop (  ) 

When retrieving available relations, make sure it does not give a relation based on what model it is coming from. If you are in a Contact and the parent relation is account, then Contact should not return the account as an available relation. testGetAllReportableRelations

Definition at line 167 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetReportableAttributes (  ) 

testGetAvailableRelationsDoesNotCauseFeedbackLoop

Definition at line 205 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetInferredRelationsData (  ) 

testGetReportableAttributes Testing where a model relates to another model via something like Item. An example is notes which connects to accounts via activityItems MANY_MANY through Items. On Notes we need to be able to show these relations as selectable in reporting.

In this example ReportModelTestItem5 connects to ReportModelTestItem and ReportModelTestItem2 via MANY_MANY through Item using the reportItems relation Known as viaRelations: model5ViaItem on ReportModelItem and model5ViaItem on ReportModelItem2

Definition at line 288 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetInferredRelationsDataWithPrecedingModel (  ) 

testGetInferredRelationsData

Definition at line 325 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetDerivedRelationsViaCastedUpModelDataWithPrecedingModel (  ) 

testGetInferredRelationsDataWithPrecedingModel

Definition at line 371 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForRowsAndColumnsFilters (  ) 

testGetDerivedRelationsViaCastedUpModelDataWithPrecedingModel

Definition at line 439 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForRowsAndColumnsDisplayColumns (  ) 

testGetAvailableAttributesForRowsAndColumnsFilters

Definition at line 507 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForRowsAndColumnsOrderBys (  ) 

testGetAvailableAttributesForRowsAndColumnsDisplayColumns

Definition at line 528 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForSummationFilters (  ) 

testGetAvailableAttributesForRowsAndColumnsOrderBys

Definition at line 590 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForSummationDisplayAttributes (  ) 

testGetAvailableAttributesForSummationFilters

Definition at line 658 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGroupingOnDifferentModelAndMakingSureCorrectDisplayAttributesAreAvailable (  ) 

testGetAvailableAttributesForSummationDisplayAttributes

Definition at line 754 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForSummationOrderBys (  ) 

testGroupingOnDifferentModelAndMakingSureCorrectDisplayAttributesAreAvailable

Definition at line 832 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForSummationOrderBysThatAreDisplayCalculations (  ) 

testGetAvailableAttributesForSummationOrderBys

Definition at line 886 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForSummationGroupBys (  ) 

testGetAvailableAttributesForSummationOrderBysThatAreDisplayCalculations

Definition at line 937 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForSummationDrillDownDisplayAttributes (  ) 

testGetAvailableAttributesForSummationGroupBys

Definition at line 1037 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForMatrixFilters (  ) 

testGetAvailableAttributesForSummationDrillDownDisplayAttributes

Definition at line 1061 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForMatrixGroupBys (  ) 

testGetAvailableAttributesForMatrixFilters

Definition at line 1129 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableAttributesForMatrixDisplayAttributes (  ) 

testGetAvailableAttributesForMatrixGroupBys

Definition at line 1221 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testIsRelation (  ) 

testGetAvailableAttributesForMatrixDisplayAttributes

Definition at line 1295 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testIsRelationASingularRelation (  ) 

testIsRelation

Definition at line 1327 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetFilterValueElementTypeForNonStatefulAttributes (  ) 

testIsRelationASingularRelation

Definition at line 1351 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetFilterValueElementTypeForAStatefulAttribute (  ) 

testGetFilterValueElementTypeForNonStatefulAttributes

Definition at line 1375 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetFilterValueElementType (  ) 

testGetFilterValueElementTypeForAStatefulAttribute

Definition at line 1391 of file ModelRelationsAndAttributesToReportAdapterTest.php.

testGetAvailableOperatorsType (  ) 

testGetFilterValueElementType

Definition at line 1422 of file ModelRelationsAndAttributesToReportAdapterTest.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Oct 21 07:10:27 2017