ProductTest Class Reference

Inheritance diagram for ProductTest:
ZurmoBaseTest BaseTest

Public Member Functions

 testEmptyOpportunityGetsCreatedOnProductEdit ()
 testDemoDataMaker ()
 testCreateAndGetProductById ()
 testGetProductsByName ()
 testGetLabel ()
 testGetProductByNameForNonExistentName ()
 testGetAll ()
 testDeleteProduct ()
 testGetAllWhenThereAreNone ()
 testProductSaveWithPermissions ()

Static Public Member Functions

static setUpBeforeClass ()

Detailed Description

Definition at line 37 of file ProductTest.php.


Member Function Documentation

testEmptyOpportunityGetsCreatedOnProductEdit (  ) 

Shows a bug with opportunity as a product relation. The bug is when there is a default customField value The fix is the use of isReallyModified() to now determine if during save() if the model has really been modified If it is a new model, then for example 'name' must not be empty, otherwise it is has not really been modified

Definition at line 60 of file ProductTest.php.

testGetProductsByName (  ) 

testCreateAndGetProductById

Definition at line 169 of file ProductTest.php.

testGetLabel (  ) 

testCreateAndGetProductById

Definition at line 180 of file ProductTest.php.

testGetProductByNameForNonExistentName (  ) 

testGetProductsByName

Definition at line 192 of file ProductTest.php.

testGetAll (  ) 

testCreateAndGetProductById

Definition at line 202 of file ProductTest.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Sep 21 07:11:04 2019