All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions
ModelRelationsAndAttributesToWorkflowAdapterTest Class Reference
Inheritance diagram for ModelRelationsAndAttributesToWorkflowAdapterTest:
WorkflowBaseTest ZurmoBaseTest BaseTest

Public Member Functions

 testGetAllRelations ()
 
 testGetHasManyBelongsToRelations ()
 
 testGetAllWorkflowableRelations ()
 
 testGetAvailableRelationsDoesNotCauseFeedbackLoop ()
 
 testGetUsableAttributes ()
 
 testGetInferredRelationsData ()
 
 testGetInferredRelationsDataWithPrecedingModel ()
 
 testGetDerivedRelationsViaCastedUpModelDataWithPrecedingModel ()
 
 testGetAllAvailableOnSaveTriggersRelations ()
 
 testGetAllAvailableOnSaveTriggersRelationsWithPreceding ()
 
 testGetAvailableAttributesForOnSaveTriggers ()
 
 testGetAvailableAttributesForOnSaveCreateActionAttributes ()
 
 testGetAvailableAttributesForOnSaveUpdateActionAttributes ()
 
 testGetAllAvailableOnSaveRelationsForActionTypeRelation ()
 
 testGetAllAvailableByTimeTriggersRelations ()
 
 testGetAllAvailableByTimeTriggersRelationsWithPreceding ()
 
 testGetAvailableAttributesForByTimeTriggers ()
 
 testGetAvailableAttributesForByTimeTimeTrigger ()
 
 testGetAvailableAttributesForByTimeCreateActionAttributes ()
 
 testGetAvailableAttributesForByTimeUpdateActionAttributes ()
 
 testGetAllAvailableByTimeRelationsForActionTypeRelation ()
 
 testIsRelation ()
 
 testIsRelationASingularRelation ()
 
 testGetTriggerValueElementTypeForNonStatefulAttributes ()
 
 testGetTriggerValueElementTypeForAStatefulAttribute ()
 
 testGetTriggerValueElementType ()
 
 testGetAvailableOperatorsType ()
 
 testGetSelectableRelationsDataForEmailMessageRecipientModelRelation ()
 
 testGetSelectableContactRelationsDataForEmailMessageRecipientModelRelation ()
 
- Public Member Functions inherited from WorkflowBaseTest
 setUp ()
 
- Public Member Functions inherited from ZurmoBaseTest
 setUp ()
 
- Public Member Functions inherited from BaseTest
 setup ()
 
 teardown ()
 

Static Public Member Functions

static setUpBeforeClass ()
 
- Static Public Member Functions inherited from WorkflowBaseTest
static setUpBeforeClass ()
 
- Static Public Member Functions inherited from ZurmoBaseTest
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
- 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 ZurmoBaseTest
static $activateDefaultLanguages = false
 
- Static Public Attributes inherited from BaseTest
static $activateDefaultLanguages = false
 
- Protected Member Functions inherited from ZurmoBaseTest
 endPrintOutputBufferAndFail ()
 
- Protected Member Functions inherited from BaseTest
 assertWithinTolerance ($expected, $actual, $plusMinus)
 
 assertWithinPercentage ($expected, $actual, $percentage)
 
 isDebug ()
 
- Static Protected Member Functions inherited from ZurmoBaseTest
static startOutputBuffer ()
 
static endAndGetOutputBuffer ()
 
- Static Protected Member Functions inherited from BaseTest
static getProtectedMethod ($className, $methodName)
 
- Static Protected Attributes inherited from ZurmoBaseTest
static $activitiesObserver
 
static $conversationsObserver
 
static $emailMessagesObserver
 
static $contactLatestActivityDateTimeObserver
 
static $accountLatestActivityDateTimeObserver
 
static $accountContactAffiliationObserver
 

Detailed Description

Definition at line 37 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

Member Function Documentation

testGetHasManyBelongsToRelations ( )

testGetAllRelations Make sure HAS_MANY_BELONGS_TO relations show up

Definition at line 68 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAllWorkflowableRelations ( )

testGetHasManyBelongsToRelations

Definition at line 88 of file ModelRelationsAndAttributesToWorkflowAdapterTest.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. testGetAllWorkflowableRelations

Definition at line 133 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetUsableAttributes ( )

testGetAvailableRelationsDoesNotCauseFeedbackLoop

Definition at line 171 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetInferredRelationsData ( )

testGetUsableAttributes 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 workflowing.

In this example WorkflowModelTestItem5 connects to WorkflowModelTestItem and WorkflowModelTestItem2 via MANY_MANY through Item using the workflowItems relation Known as viaRelations: model5ViaItem on WorkflowModelItem and model5ViaItem on WorkflowModelItem2

Definition at line 254 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetInferredRelationsDataWithPrecedingModel ( )

testGetInferredRelationsData

Definition at line 293 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetDerivedRelationsViaCastedUpModelDataWithPrecedingModel ( )

testGetInferredRelationsDataWithPrecedingModel

Definition at line 343 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAllAvailableOnSaveTriggersRelations ( )

testGetDerivedRelationsViaCastedUpModelDataWithPrecedingModel

Definition at line 411 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAllAvailableOnSaveTriggersRelationsWithPreceding ( )

testGetAllAvailableOnSaveTriggersRelations

Definition at line 448 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAvailableAttributesForOnSaveTriggers ( )

testGetAllAvailableOnSaveTriggersRelationsWithPreceding

Definition at line 469 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAvailableAttributesForOnSaveCreateActionAttributes ( )

testGetAvailableAttributesForOnSaveTriggers

Definition at line 539 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAvailableAttributesForOnSaveUpdateActionAttributes ( )

testGetAvailableAttributesForOnSaveCreateActionAttributes

Definition at line 630 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAllAvailableOnSaveRelationsForActionTypeRelation ( )

testGetAvailableAttributesForOnSaveUpdateActionAttributes

Definition at line 717 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAllAvailableByTimeTriggersRelations ( )

testGetAllAvailableOnSaveRelationsForActionTypeRelation

Definition at line 742 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAllAvailableByTimeTriggersRelationsWithPreceding ( )

testGetAllAvailableByTimeTriggersRelations

Definition at line 779 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAvailableAttributesForByTimeTriggers ( )

testGetAllAvailableByTimeTriggersRelationsWithPreceding

Definition at line 800 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAvailableAttributesForByTimeTimeTrigger ( )

testGetAvailableAttributesForByTimeTriggers

Definition at line 870 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAvailableAttributesForByTimeCreateActionAttributes ( )

testGetAvailableAttributesForByTimeTimeTrigger

Definition at line 980 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAvailableAttributesForByTimeUpdateActionAttributes ( )

testGetAvailableAttributesForByTimeCreateActionAttributes

Definition at line 1071 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAllAvailableByTimeRelationsForActionTypeRelation ( )

testGetAvailableAttributesForByTimeUpdateActionAttributes

Definition at line 1158 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testIsRelation ( )

testGetAllAvailableByTimeRelationsForActionTypeRelation

Definition at line 1183 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testIsRelationASingularRelation ( )

testIsRelation

Definition at line 1215 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetTriggerValueElementTypeForNonStatefulAttributes ( )

testIsRelationASingularRelation

Definition at line 1239 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetTriggerValueElementTypeForAStatefulAttribute ( )

testGetTriggerValueElementTypeForNonStatefulAttributes

Definition at line 1269 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetTriggerValueElementType ( )

testGetTriggerValueElementTypeForAStatefulAttribute

Definition at line 1285 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetAvailableOperatorsType ( )

testGetTriggerValueElementType

Definition at line 1322 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetSelectableRelationsDataForEmailMessageRecipientModelRelation ( )

testGetAvailableOperatorsType

Definition at line 1377 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.

testGetSelectableContactRelationsDataForEmailMessageRecipientModelRelation ( )

testGetSelectableRelationsDataForEmailMessageRecipientModelRelation

Definition at line 1392 of file ModelRelationsAndAttributesToWorkflowAdapterTest.php.


The documentation for this class was generated from the following file:
Generated on Thu May 28 2020 07:10:53