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

Public Member Functions

 testEmptyOpportunityGetsCreatedOnProductEdit ()
 
 testDemoDataMaker ()
 
 testCreateAndGetProductById ()
 
 testGetProductsByName ()
 
 testGetLabel ()
 
 testGetProductByNameForNonExistentName ()
 
 testGetAll ()
 
 testDeleteProduct ()
 
 testGetAllWhenThereAreNone ()
 
 testProductSaveWithPermissions ()
 
- 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 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 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:
Generated on Mon Jun 1 2020 07:10:58