private function AcquiaConnectorSpiTest::acquiaSpiStrings in Acquia Connector 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/AcquiaConnectorSpiTest.php \Drupal\Tests\acquia_connector\Functional\AcquiaConnectorSpiTest::acquiaSpiStrings()
- 3.x tests/src/Functional/AcquiaConnectorSpiTest.php \Drupal\Tests\acquia_connector\Functional\AcquiaConnectorSpiTest::acquiaSpiStrings()
Helper function for storing UI strings.
Parameters
string $id: String ID.
Return value
string UI message.
Throws
\Exception
File
- tests/
src/ Functional/ AcquiaConnectorSpiTest.php, line 262
Class
- AcquiaConnectorSpiTest
- Tests the functionality of the Acquia SPI module.
Namespace
Drupal\Tests\acquia_connector\FunctionalCode
private function acquiaSpiStrings($id) {
switch ($id) {
case 'spi-status-text':
return 'SPI data will be sent once every 30 minutes once cron is called';
case 'spi-not-sent':
return 'SPI data has not been sent';
case 'spi-send-text':
return 'manually send SPI data';
case 'spi-data-sent':
return 'SPI data sent';
case 'spi-data-sent-error':
return 'Error sending SPI data. Consult the logs for more information.';
case 'spi-new-def':
return 'There are new checks that will be performed on your site by the Acquia Connector';
case 'provide-site-name':
return 'provide a site name';
case 'change-env-detected':
return 'A change in your site\'s environment has been detected. SPI data cannot be submitted until this is resolved.';
case 'confirm-action':
return 'confirm the action you wish to take';
case 'block-site-message':
return 'This site has been disabled from sending profile data to Acquia.';
case 'unblock-site':
return 'Enable this site';
case 'acquia-hosted':
return 'Your site is now Acquia hosted.';
case 'no-acquia-hosted':
return 'Your site is no longer Acquia hosted.';
default:
throw new \Exception("Invalid id {$id}");
}
}