private function AcquiaAgentTestCase::acquiaAgentStrings in Acquia Connector 7.3
Same name and namespace in other branches
- 7.2 acquia_agent/tests/acquia_agent.test \AcquiaAgentTestCase::acquiaAgentStrings()
Helper function for storing UI strings.
Parameters
string $id: UI string id.
Return value
string The message string.
1 call to AcquiaAgentTestCase::acquiaAgentStrings()
- AcquiaAgentTestCase::testAcquiaAgentGetConnected in acquia_agent/
tests/ acquia_agent.test - Test Acquia Agent connection.
File
- acquia_agent/
tests/ acquia_agent.test, line 121 - Tests the functionality of the Acquia Agent module.
Class
- AcquiaAgentTestCase
- AcquiaAgentTestCase.
Code
private function acquiaAgentStrings($id) {
switch ($id) {
case 'free':
return 'Sign up for Acquia Cloud Free, a free Drupal sandbox to experiment with new features, test your code quality, and apply continuous integration best practices.';
case 'get-connected':
return 'If you have an Acquia Subscription, connect now. Otherwise, you can turn this message off by disabling the Acquia Subscription modules.';
case 'enter-email':
return 'Enter the email address you use to sign in to Acquia';
case 'enter-password':
return 'Enter your Acquia account password';
case 'account-not-found':
return 'Account not found';
case 'id-key':
return 'Enter your product keys from your application overview or log in to connect your site to Acquia Insight.';
case 'enter-key':
return 'Network key';
case 'subscription-not-found':
return 'Error: Subscription not found (1800)';
case 'saved':
return 'The Acquia configuration options have been saved.';
case 'subscription':
// Assumes subscription name is same as id.
return 'Subscription: ' . ACQUIA_CONNECTOR_TEST_ID;
case 'menu-active':
return 'Subscription active (expires 2023/10/8)';
case 'menu-inactive':
return 'Subscription not active';
}
return '';
}