WorkflowTriggersUtilTest Class Reference

Inheritance diagram for WorkflowTriggersUtilTest:
WorkflowTriggersUtilBaseTest WorkflowBaseTest ZurmoBaseTest BaseTest

Public Member Functions

 testResolveStructureToPHPString ()
 testResolveBooleansDataToPHPString ()
 testResolveBooleansDataToPHPStringWithInvalidDataKey ()
 testResolveBooleansDataToPHPStringWithInvalidDataValue ()
 testEvaluatePHPString ()
 testEvaluatePHPStringThrowsException ()
 testEvaluatePHPStringThrowsFailedAssertion ()
 testAreTriggersTrueBeforeSaveWithInvalidAttributeData ()
 testAreTriggersTrueBeforeSaveWithRelationAndAnotherRelationBeforeAttribute ()
 testTriggerOnAnInferredModelWithASingleModelRelated ()
 testTriggerOnAnInferredModelWithAMultipleModelsRelated ()
 testTriggerOnAnInferredModelsOwnedModelWithAMultipleModelsRelated ()
 testTriggerOnAnAlreadySavedInferredModelWithAMultipleModelsRelated ()
 testTriggerOnAnAlreadySavedInferredModelsOwnedModelWithAMultipleModelsRelated ()

Static Public Member Functions

static setUpBeforeClass ()
static getDependentTestModelClassNames ()

Detailed Description

Definition at line 37 of file WorkflowTriggersUtilTest.php.


Member Function Documentation

testResolveBooleansDataToPHPStringWithInvalidDataKey (  ) 

NotSupportedException()

Definition at line 71 of file WorkflowTriggersUtilTest.php.

testResolveBooleansDataToPHPStringWithInvalidDataValue (  ) 
testEvaluatePHPStringThrowsException (  ) 

InvalidArgumentException

Definition at line 105 of file WorkflowTriggersUtilTest.php.

testEvaluatePHPStringThrowsFailedAssertion (  ) 

InvalidArgumentException

Definition at line 116 of file WorkflowTriggersUtilTest.php.

testAreTriggersTrueBeforeSaveWithInvalidAttributeData (  ) 

Example of too much nesting, that would result in an exception NotSupportedException

Definition at line 128 of file WorkflowTriggersUtilTest.php.

testAreTriggersTrueBeforeSaveWithRelationAndAnotherRelationBeforeAttribute (  ) 

Testing that when you have a relation with another owned relation before the attribute, that it works correctly.

Definition at line 139 of file WorkflowTriggersUtilTest.php.

testTriggerOnAnInferredModelWithAMultipleModelsRelated (  ) 

In the case of having both an account and contact related to the note, it should properly check the related account and not the related contact.

Definition at line 176 of file WorkflowTriggersUtilTest.php.

testTriggerOnAnInferredModelsOwnedModelWithAMultipleModelsRelated (  ) 
See also:
testTriggerOnAnInferredModelWithAMultipleModelsRelated. The difference here is that the model being tested is the ownedModel which is a different if clause inside WorkflowTriggersUtil::isTriggerTrueByModel

Definition at line 206 of file WorkflowTriggersUtilTest.php.

testTriggerOnAnAlreadySavedInferredModelWithAMultipleModelsRelated (  ) 
See also:
testTriggerOnAnInferredModelWithAMultipleModelsRelated. Saving Note first, then retrieving. This means the activityItems are 'Item' model and need to be casted down.

Definition at line 235 of file WorkflowTriggersUtilTest.php.

testTriggerOnAnAlreadySavedInferredModelsOwnedModelWithAMultipleModelsRelated (  ) 
See also:
testTriggerOnAnInferredModelsOwnedModelWithAMultipleModelsRelated. Saving Note first, then retrieving. This means the activityItems are 'Item' model and need to be casted down.

Definition at line 274 of file WorkflowTriggersUtilTest.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Oct 19 07:10:31 2017