All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions
ApiRestContactTest Class Reference
Inheritance diagram for ApiRestContactTest:
ApiRestTest ApiBaseTest ZurmoBaseTest BaseTest

Public Member Functions

 testGetContact ()
 
 testDeleteContact ()
 
 testCreateContact ()
 
 testCreateContactWithSpecificOwner ()
 
 testCreateContactWithSpecificExplicitPermissions ()
 
 testUpdateContact ()
 
 testListContacts ()
 
 testListContactAttributes ()
 
 testUnprivilegedUserViewUpdateDeleteContacts ()
 
 testBasicSearchContacts ()
 
 testDynamicSearchContacts ()
 
 testNewSearchContacts ()
 
 testGetContactsThatAreRelatedWithOpportunity ()
 
 testCreateWithRelations ()
 
 testUpdateWithRelations ()
 
 testEditContactWithIncompleteData ()
 
 testEditContactWIthIncorrectDataType ()
 
 testGetCreatedContacts ()
 
 testGetModifiedContacts ()
 
 testGetDeletedContacts ()
 
- Public Member Functions inherited from ApiRestTest
 testLogin ()
 
 testLoginXml ()
 
- Public Member Functions inherited from ApiBaseTest
 setUp ()
 
- 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 ApiBaseTest
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)
 

Protected Member Functions

 getApiControllerClassName ()
 
 getModuleBaseApiUrl ()
 
- Protected Member Functions inherited from ApiRestTest
 login ($username= 'super', $password= 'super', $type= 'json')
 
 loginXml ($username= 'super', $password= 'super')
 
 getModuleBaseApiUrl ()
 
 getApiControllerClassName ()
 
- Protected Member Functions inherited from ApiBaseTest
 getApiControllerClassName ()
 
 getModuleBaseApiUrl ()
 
 getBaseApiUrl ()
 
 setupServerUrl ()
 
 isApiTestUrlConfigured ()
 
 getModelToApiDataUtilData (RedBeanModel $model)
 
 createApiCallWithRelativeUrl ($relativeUrl, $method, $headers, $data=array())
 
 deleteAllModelsAndRecordsFromReadPermissionTable ($modelClassName)
 
- Protected Member Functions inherited from ZurmoBaseTest
 endPrintOutputBufferAndFail ()
 
- Protected Member Functions inherited from BaseTest
 assertWithinTolerance ($expected, $actual, $plusMinus)
 
 assertWithinPercentage ($expected, $actual, $percentage)
 
 isDebug ()
 

Additional Inherited Members

- Static Public Attributes inherited from ZurmoBaseTest
static $activateDefaultLanguages = false
 
- Static Public Attributes inherited from BaseTest
static $activateDefaultLanguages = false
 
- Static Protected Member Functions inherited from ApiBaseTest
static setRandomNonEveryoneNonAdministratorsGroup ()
 
- Static Protected Member Functions inherited from ZurmoBaseTest
static startOutputBuffer ()
 
static endAndGetOutputBuffer ()
 
- Static Protected Member Functions inherited from BaseTest
static getProtectedMethod ($className, $methodName)
 
- Protected Attributes inherited from ApiBaseTest
 $serverUrl = ''
 
- Static Protected Attributes inherited from ApiBaseTest
static $createUsersAndGroups = true
 
static $randomNonEveryoneNonAdministratorsGroup = null
 
- Static Protected Attributes inherited from ZurmoBaseTest
static $activitiesObserver
 
static $conversationsObserver
 
static $emailMessagesObserver
 
static $contactLatestActivityDateTimeObserver
 
static $accountLatestActivityDateTimeObserver
 
static $accountContactAffiliationObserver
 

Detailed Description

Test Contact related API functions.

Definition at line 40 of file ApiRestContactTest.php.

Member Function Documentation

testDeleteContact ( )

testGetContact

Definition at line 80 of file ApiRestContactTest.php.

testCreateContactWithSpecificOwner ( )

testCreateContact

Definition at line 270 of file ApiRestContactTest.php.

testCreateContactWithSpecificExplicitPermissions ( )

testCreateContact

Definition at line 438 of file ApiRestContactTest.php.

testUpdateContact ( )

testCreateContact

Definition at line 606 of file ApiRestContactTest.php.

testListContacts ( )

testUpdateContact

Definition at line 653 of file ApiRestContactTest.php.

testUnprivilegedUserViewUpdateDeleteContacts ( )

testListContacts

Definition at line 701 of file ApiRestContactTest.php.

testBasicSearchContacts ( )

testUnprivilegedUserViewUpdateDeleteContacts

Definition at line 824 of file ApiRestContactTest.php.

testDynamicSearchContacts ( )

testBasicSearchContacts

Definition at line 964 of file ApiRestContactTest.php.

testGetContactsThatAreRelatedWithOpportunity ( )

Test get contacts that are releted with particular opportunity(MANY_MANY relationship) testDynamicSearchContacts

Definition at line 1113 of file ApiRestContactTest.php.

testUpdateWithRelations ( )

testCreateWithRelations

Definition at line 1236 of file ApiRestContactTest.php.

testGetCreatedContacts ( )

Test if all newly created items was pulled from read permission tables via API. Please note that here we do not test if data are inserted in read permission tables correctly, that is part of read permission subscription tests

Exceptions
NotFoundException
NotImplementedException
NotSupportedException

Definition at line 1373 of file ApiRestContactTest.php.

testGetModifiedContacts ( )

Test if all modified items was pulled via API correctly. Please note that here we do not test if data are inserted in read permission tables correctly, that is part of read permission subscription tests

Exceptions
NotFoundException

Definition at line 1522 of file ApiRestContactTest.php.

testGetDeletedContacts ( )

Test if all deleted items was pulled from read permission tables via API. Please note that here we do not test if data are inserted in read permission tables correctly, that is part of read permission subscription tests

Exceptions
NotFoundException

Definition at line 1627 of file ApiRestContactTest.php.


The documentation for this class was generated from the following file:
Generated on Sat May 30 2020 07:10:39