ZurmoWalkthroughBaseTest Class Reference

Inheritance diagram for ZurmoWalkthroughBaseTest:
ZurmoBaseTest BaseTest AccountAccountAffiliationsDesignerSuperUserWalkthroughTest AccountAccountAffiliationsSuperUserWalkthroughTest AccountContactAffiliationsDesignerSuperUserWalkthroughTest AccountContactAffiliationsSuperUserWalkthroughTest AccountDetailsAndRelationsPortletViewTest AccountLatestActivitiesSuperUserWalkthroughTest AccountPermissionsSuperUserWalkthroughTest AccountsDesignerSuperUserWalkthroughTest AccountsRegularUserUnlinkWalkthroughTest AccountsSuperUserCustomDateNullValueBugWalkthroughTest AccountsSuperUserExportWalkthroughTest AccountsSuperUserMixedAttributeCreationWalkthroughTest AccountsSuperUserUnlinkWalkthroughTest AccountsSuperUserWalkthroughTest ArchivedEmailMatchingUserWalkthroughTest AutoresponderDefaultControllerRegularUserWalkthroughTest AutoresponderDefaultControllerSuperUserWalkthroughTest CalendarsSuperUserWalkthroughTest CampaignDefaultControllerRegularUserWalkthroughTest CampaignDefaultControllerSuperUserWalkthroughTest ConfigurationSuperUserWalkthroughTest ContactDetailsAndRelationsPortletViewTest ContactsDesignerSuperUserWalkthroughTest ContactsSuperUserExportWalkthroughTest ContactsSuperUserKanbanBoardWalkthroughTest ContactsSuperUserWalkthroughTest ContactsSuperUserZeroModelsWalkthroughTest ContactWebFormEntrySuperUserWalkthroughTest ContactWebFormsSuperUserWalkthroughTest ConversationsMashableInboxRulesTest ConversationsUserWalkthroughTest CurrencySuperUserWalkthroughTest DesignerSuperUserWalkthroughTest EmailConfigurationSuperUserWalkthroughTest EmailMessagesSuperUserWalkthroughTest EmailTemplatesSuperUserWalkthroughTest GameRewardsSuperUserWalkthroughTest GamificationSuperUserWalkthroughTest HomeSuperUserWalkthroughTest ImportWalkthroughBaseTest InstallWalkthroughTest JobLogViewWalkthroughTest JobsManagerSuperUserWalkthroughTest LanguageSuperUserWalkthroughTest LdapConfigurationSuperUserWalkthroughTest LeadDetailsAndRelationsPortletViewTest LeadsDesignerSuperUserWalkthroughTest LeadsSuperUserExportWalkthroughTest LeadsSuperUserKanbanBoardWalkthroughTest LeadsSuperUserWalkthroughTest MapsConfigurationSuperUserWalkthroughTest MapsPortletSuperUserWalkthroughTest MapsSuperUserWalkthroughTest MarketingConfigurationFormAdapterSuperUserWalkthroughTest MarketingListDefaultControllerRegularUserWalkthroughTest MarketingListDefaultControllerSuperUserWalkthroughTest MarketingListDefaultPortletControllerRegularUserWalkthroughTest MarketingListDefaultPortletControllerSuperUserWalkthroughTest MarketingListMemberControllerRegularUserWalkthroughTest MarketingListMemberControllerSuperUserWalkthroughTest MarketingListsExternalControllerWalkthroughTest MarketingSuperUserWalkthroughTest MashableInboxUserWalkthroughTest MeetingsDesignerSuperUserWalkthroughTest MeetingsSuperUserWalkthroughTest MiscSuperUserWalkthroughTest MissionGamificationRulesTest MissionsMashableInboxRulesTest MissionsUserWalkthroughTest NotesDesignerSuperUserWalkthroughTest NotesSuperUserWalkthroughTest NotificationsMashableInboxRulesTest NotificationsWalkthroughTest OpportunitiesChartWalkthroughTest OpportunitiesDesignerSuperUserWalkthroughTest OpportunitiesSuperUserExportWalkthroughTest OpportunitiesSuperUserKanbanBoardWalkthroughTest OpportunitiesSuperUserWalkthroughTest ProductCategorySuperUserWalkthroughTest ProductsDesignerSuperUserWalkthroughTest ProductsSuperUserExportWalkthroughTest ProductsSuperUserSaveWalkthroughTest ProductsSuperUserWalkthroughTest ProductTemplatesDesignerSuperUserWalkthroughTest ProductTemplatesSuperUserExportWalkthroughTest ProductTemplatesSuperUserMiscWalkthroughTest ProductTemplateSuperUserWalkthroughTest ProjectsDesignerSuperUserWalkthroughTest ProjectsSuperUserExportWalkthroughTest ProjectsSuperUserWalkthroughTest ReportsSuperUserWalkthroughTest RequiredAttributesViewValidityWalkthroughTest ShortUrlSuperUserWalkthroughTest SocialItemsUserWalkthroughTest TaskAjaxSuperUserWalkthroughTest TaskCheckItemsAjaxSuperUserWalkthroughTest TaskCheckItemsSuperUserWalkthroughTest TasksDesignerSuperUserWalkthroughTest TasksSuperUserWalkthroughTest TrackingDefaultControllerWalkthroughTest UserDefaultPermissionWalkthroughTest UsersByModelWalkthroughTest UsersSuperUserExportWalkthroughTest UsersSuperUserWalkthroughTest WorkflowInQueuesSuperUserWalkthroughTest WorkflowsSuperUserWalkthroughTest ZurmoConfigurationFormAdapterSuperUserWalkthroughTest ZurmoDynamicSearchSuperUserWalkthroughTest ZurmoMixedModelsSearchSuperUserWalkthroughTest ZurmoRegularUserWalkthroughBaseTest ZurmoSavedDynamicSearchSuperUserWalkthroughTest ZurmoSuperUserWalkthroughTest ZurmoUserInterfaceConfigurationFormAdapterSuperUserWalkthroughTest

Public Member Functions

 setUp ()

Protected Member Functions

 logoutCurrentUserLoginNewUserAndGetByUsername ($username)
 runControllerWithNoExceptionsAndGetContent ($route, $empty=false)
 runControllerWithExitExceptionAndGetContent ($route)
 runControllerWithRedirectExceptionAndGetUrl ($route)
 runControllerWithRedirectExceptionAndGetContent ($route, $compareUrl=null, $compareUrlContains=false)
 runControllerWithAccessDeniedSecurityExceptionAndGetContent ($route)
 runControllerWithNotSupportedExceptionAndGetContent ($route)
 runControllerWithNotFoundExceptionAndGetContent ($route)
 runControllerShouldResultInAccessFailureAndGetContent ($route)
 runControllerShouldResultInAjaxAccessFailureAndGetContent ($route)
 resetGetArray ()
 setGetArray ($data)
 resetPostArray ()
 setPostArray ($data)
 doApplicationScriptPathsAllExist ()
 createCheckBoxCustomFieldByModule ($moduleClassName, $name)
 createCurrencyValueCustomFieldByModule ($moduleClassName, $name)
 createDateCustomFieldByModule ($moduleClassName, $name)
 createDateNotRequiredCustomFieldByModule ($moduleClassName, $name)
 createDateTimeCustomFieldByModule ($moduleClassName, $name)
 createDecimalCustomFieldByModule ($moduleClassName, $name)
 createIntegerCustomFieldByModule ($moduleClassName, $name)
 createPhoneCustomFieldByModule ($moduleClassName, $name)
 createTextCustomFieldByModule ($moduleClassName, $name)
 createTextAreaCustomFieldByModule ($moduleClassName, $name)
 createUrlCustomFieldByModule ($moduleClassName, $name)
 createDropDownCustomFieldByModule ($moduleClassName, $name)
 createDependentDropDownCustomFieldByModule ($moduleClassName, $name)
 createRadioDropDownCustomFieldByModule ($moduleClassName, $name)
 createMultiSelectDropDownCustomFieldByModule ($moduleClassName, $name)
 createTagCloudCustomFieldByModule ($moduleClassName, $name)
 createCalculatedNumberCustomFieldByModule ($moduleClassName, $name)
 createDropDownDependencyCustomFieldByModule ($moduleClassName, $name)
 createModuleEditBadValidationPostData ()
 createModuleEditGoodValidationPostData ($singularName)
 createAttributeLabelBadValidationPostData ()
 createAttributeLabelGoodValidationPostData ($name)
 createCustomAttributeWalkthroughSequence ($moduleClassName, $name, $attributeTypeName, $extraPostData, $attributeName=null, $isCustomField=false)
 checkCopyActionResponseAttributeValuesFromPostArray ($model, $postArray, $linkClass=null, $controllerId=null)
 checkCopyActionResponseAttributeValues ($model, $testAttributes, $linkClass=null, $controllerId=null)
 updateModelValuesFromPostArray ($model, $postArray)
 assertModelHasValuesFromPostArray ($model, $postArray)

Static Protected Member Functions

static getModelIdByModelNameAndName ($modelName, $name)

Detailed Description

Parent class for walkthrough documentation tests

Definition at line 40 of file ZurmoWalkthroughBaseTest.php.


Member Function Documentation

logoutCurrentUserLoginNewUserAndGetByUsername ( username  )  [protected]

Use this method to clear the current user and login a new user for a walkthrough.

Definition at line 58 of file ZurmoWalkthroughBaseTest.php.

runControllerWithNoExceptionsAndGetContent ( route,
empty = false 
) [protected]

Helper method to run a controller action that is expected not to produce an exception.

Definition at line 83 of file ZurmoWalkthroughBaseTest.php.

runControllerWithExitExceptionAndGetContent ( route  )  [protected]

Helper method to run a controller action that is expected produce an exit exception

Definition at line 112 of file ZurmoWalkthroughBaseTest.php.

runControllerWithRedirectExceptionAndGetUrl ( route  )  [protected]

Helper method to run a controller action that is expected produce a redirect exception.

Definition at line 133 of file ZurmoWalkthroughBaseTest.php.

runControllerWithRedirectExceptionAndGetContent ( route,
compareUrl = null,
compareUrlContains = false 
) [protected]

Helper method to run a controller action that is expected produce a redirect exception.

Definition at line 155 of file ZurmoWalkthroughBaseTest.php.

runControllerWithAccessDeniedSecurityExceptionAndGetContent ( route  )  [protected]

Helper method to run a controller action that is expected produce a AccessDeniedSecurityException exception.

Definition at line 197 of file ZurmoWalkthroughBaseTest.php.

runControllerWithNotSupportedExceptionAndGetContent ( route  )  [protected]

Helper method to run a controller action that is expected produce a NotSupported exception.

Definition at line 218 of file ZurmoWalkthroughBaseTest.php.

runControllerWithNotFoundExceptionAndGetContent ( route  )  [protected]

Helper method to run a controller action that is expected produce a NotFound exception.

Definition at line 239 of file ZurmoWalkthroughBaseTest.php.

checkCopyActionResponseAttributeValuesFromPostArray ( model,
postArray,
linkClass = null,
controllerId = null 
) [protected]

Uses postArray to check response field values.

Parameters:
$model 
$postArray 
null $linkClass
Returns:
bool

Definition at line 653 of file ZurmoWalkthroughBaseTest.php.

checkCopyActionResponseAttributeValues ( model,
testAttributes,
linkClass = null,
controllerId = null 
) [protected]

Test if form fields have values from record. It supports selects, plain text fields and textareas.

Parameters:
$model 
$testAttributes 
null $linkClass
null $controllerId
Returns:
bool

Definition at line 673 of file ZurmoWalkthroughBaseTest.php.

updateModelValuesFromPostArray ( model,
postArray 
) [protected]

Updates the model with values from post array.

Parameters:
OwnedSecurableItem $model Updated model
array $postArray Array of post values

Definition at line 724 of file ZurmoWalkthroughBaseTest.php.

assertModelHasValuesFromPostArray ( model,
postArray 
) [protected]

Checks if the model has values from post array.

Parameters:
OwnedSecurableItem $model Updated model
array $postArray Array of post values

Definition at line 739 of file ZurmoWalkthroughBaseTest.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Aug 23 07:10:32 2017