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 ()

Static Public Member Functions

static setUpBeforeClass ()

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:
 All Data Structures Functions Variables
Generated on Mon Sep 25 07:10:22 2017