Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 Sat Jan 19 07:10:29 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8