You are here

protected function AcquiaLiftWebTestBase::getButton in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 tests/acquia_lift.test \AcquiaLiftWebTestBase::getButton()

Helper method to move buttons names to one pace to simplify it's maintaining

Kind of Page Objects Patterns

Parameters

$type string:

Return value

string

13 calls to AcquiaLiftWebTestBase::getButton()
AcquiaLiftWebTestAgentAdmin::testSaveAgent in tests/acquia_lift.test
AcquiaLiftWebTestAgentAdmin::testSyncGoalsFromCampaignUI in tests/acquia_lift.test
AcquiaLiftWebTestAgentAdmin::testSyncGoalsFromVisitorUI in tests/acquia_lift.test
AcquiaLiftWebTestAgentAdmin::testSyncOptionSets in tests/acquia_lift.test
Tests syncing of Option Set information to Acquia Lift.
AcquiaLiftWebTestBase::configureAcquiaLiftAccount in tests/acquia_lift.test
Helper method to configure an Acquia Lift account.

... See full list

File

tests/acquia_lift.test, line 275
Integration tests for Acquia Lift module.

Class

AcquiaLiftWebTestBase
@file Integration tests for Acquia Lift module.

Code

protected function getButton($type = '') {
  switch ($type) {
    case 'agent':
      return t('Save campaign settings');
    case 'goal':
      return t('Save goals');
    case 'option':
      return t('Save variation sets');
    case 'mvt':
      return t('Save test');
    case 'delete':
      return t('Delete');
    case 'config':
      return t('Save configuration');
    default:
      return t('Save');
  }
}