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

Public Member Functions

 setUp ()
 
 testSavingNewParentAccountSavesCorrectly ()
 
 testConfirmAccountNameIdElementStillImplementsCorrectInterfaceFromParent ()
 
 testCreateAndGetAccountById ()
 
 testEmailBooleanValues ()
 
 testGetAccountsByName ()
 
 testGetLabel ()
 
 testGetAccountsByNameForNonExistentName ()
 
 testGetAll ()
 
 testSetAndGetOwner ()
 
 testReplaceOwner ()
 
 testUpdateAccountFromForm ()
 
 testEmailAndAddresses ()
 
 testDeleteAccount ()
 
 testGetAllWhenThereAreNone ()
 
 testSetIndustryAndRetrieveDisplayName ()
 
 testIndustryWithDefaultValueDoesntDefaultWhenAccountSetDefaultsFalse ()
 
 testSetAttributeWithEmptyValue ()
 
 testOwnerNotPopulatedWhenNoDefaults ()
 
 testValidatesWithoutOwnerWhenSpecifyingAttributesToValidate ()
 
 testSettingDefaultValueForType ()
 
 testMemberOfMembersRelation ()
 
 testOfficePhoneSetsToZeroWhenClearingAndForgetting ()
 
 testGetModelClassNames ()
 
 testCreatingACustomDropDownAfterAnAccountExists ()
 
 testWebsiteCanBeSavedWithoutUrlScheme ()
 
 testCastDown ()
 
- 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 AccountTest.php.

Member Function Documentation

testConfirmAccountNameIdElementStillImplementsCorrectInterfaceFromParent ( )

testSavingNewParentAccountSavesCorrectly

Definition at line 76 of file AccountTest.php.

testCreateAndGetAccountById ( )

testConfirmAccountNameIdElementStillImplementsCorrectInterfaceFromParent

Definition at line 85 of file AccountTest.php.

testEmailBooleanValues ( )

This test can be used by any test to test out boolean values in the database, that they save and change correctly. testCreateAndGetAccountById

Definition at line 112 of file AccountTest.php.

testGetAccountsByName ( )

testCreateAndGetAccountById

Definition at line 153 of file AccountTest.php.

testGetLabel ( )

testCreateAndGetAccountById

Definition at line 163 of file AccountTest.php.

testGetAccountsByNameForNonExistentName ( )

testGetAccountsByName

Definition at line 174 of file AccountTest.php.

testGetAll ( )

testCreateAndGetAccountById

Definition at line 183 of file AccountTest.php.

testSetAndGetOwner ( )

testCreateAndGetAccountById

Definition at line 202 of file AccountTest.php.

testReplaceOwner ( )

testSetAndGetOwner

Definition at line 224 of file AccountTest.php.

testUpdateAccountFromForm ( )

testCreateAndGetAccountById

Definition at line 242 of file AccountTest.php.

testEmailAndAddresses ( )

testCreateAndGetAccountById

Definition at line 260 of file AccountTest.php.

testDeleteAccount ( )

testEmailAndAddresses

Definition at line 306 of file AccountTest.php.

testGetAllWhenThereAreNone ( )

testEmailAndAddresses

Definition at line 321 of file AccountTest.php.

testSetIndustryAndRetrieveDisplayName ( )

testCreateAndGetAccountById

Definition at line 330 of file AccountTest.php.

testSetAttributeWithEmptyValue ( )

testReplaceOwner

Definition at line 383 of file AccountTest.php.

testValidatesWithoutOwnerWhenSpecifyingAttributesToValidate ( )

testCreateAndGetAccountById

Definition at line 413 of file AccountTest.php.

testSettingDefaultValueForType ( )

testValidatesWithoutOwnerWhenSpecifyingAttributesToValidate

Definition at line 464 of file AccountTest.php.

testMemberOfMembersRelation ( )

testSettingDefaultValueForType

Definition at line 526 of file AccountTest.php.

testOfficePhoneSetsToZeroWhenClearingAndForgetting ( )

This test was originally here because we did not want the value of the phoneOffice when null to be coming back as 0. But this is how redBean works to stay consistent with all dbs.

See Also
http://groups.google.com/group/redbeanorm/browse_thread/thread/e6a0a9d29838d973/90d12a0146544a0b So for now, we will adjust the phone element in the user interface. testMemberOfMembersRelation

Definition at line 580 of file AccountTest.php.

testGetModelClassNames ( )

testOfficePhoneSetsToZeroWhenClearingAndForgetting

Definition at line 604 of file AccountTest.php.

testCreatingACustomDropDownAfterAnAccountExists ( )

testGetModelClassNames

Definition at line 616 of file AccountTest.php.

testWebsiteCanBeSavedWithoutUrlScheme ( )

testCreatingACustomDropDownAfterAnAccountExists

Definition at line 676 of file AccountTest.php.

testCastDown ( )

Should not throw exception, should cast down ok testWebsiteCanBeSavedWithoutUrlScheme

Definition at line 701 of file AccountTest.php.


The documentation for this class was generated from the following file:
Generated on Sun Apr 5 2020 07:10:48