You are here

private function AcquiaConnectorModuleTest::acquiaConnectorStrings in Acquia Connector 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/AcquiaConnectorModuleTest.php \Drupal\Tests\acquia_connector\Functional\AcquiaConnectorModuleTest::acquiaConnectorStrings()
  2. 8 tests/src/Functional/AcquiaConnectorModuleTest.php \Drupal\Tests\acquia_connector\Functional\AcquiaConnectorModuleTest::acquiaConnectorStrings()

Helper function for storing UI strings.

2 calls to AcquiaConnectorModuleTest::acquiaConnectorStrings()
AcquiaConnectorModuleTest::testAcquiaConnectorGetConnectedTests in tests/src/Functional/AcquiaConnectorModuleTest.php
Test get connected.
AcquiaConnectorModuleTest::testSpiChangeFormTests in tests/src/Functional/AcquiaConnectorModuleTest.php
Tests the SPI change form.

File

tests/src/Functional/AcquiaConnectorModuleTest.php, line 228

Class

AcquiaConnectorModuleTest
Tests the functionality of the Acquia Connector module.

Namespace

Drupal\Tests\acquia_connector\Functional

Code

private function acquiaConnectorStrings($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 Connector modules.';
    case 'enter-email':
      return 'Enter the email address you use to login to the Acquia Subscription';
    case 'enter-password':
      return 'Enter your Acquia Subscription 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 (1000)';
    case 'saved':
      return 'The configuration options have been saved.';
    case 'subscription':

      // Assumes subscription name is same as id.
      return 'Subscription: ' . $this->acqtestId;
    case 'menu-active':
      return 'Subscription active (expires 2023/10/8)';
    case 'menu-inactive':
      return 'Subscription not active';
    case 'site-name-required':
      return 'Name field is required.';
    case 'site-machine-name-required':
      return 'Machine name field is required.';
    case 'first-connection':
      return 'This is the first connection from this site, it may take awhile for it to appear.';
  }
}