You are here

public function SettingsHelperTest::providerTestGetFrontEndCredentialSettingsException in Acquia Lift Connector 8

Data provider for testGetFrontEndCredentialSettingsException().

File

tests/src/Unit/Service/Helper/SettingsHelperTest.php, line 80
Contains \Drupal\Tests\acquia_lift\Service\Helper\SettingsHelperTest.

Class

SettingsHelperTest
SettingsHelper Test.

Namespace

Drupal\Tests\acquia_lift\Service\Helper

Code

public function providerTestGetFrontEndCredentialSettingsException() {
  $data = [];
  $valid_settings = $this
    ->getValidCredentialSettings();
  $data['missing account_name'] = [
    $valid_settings,
  ];
  $data['missing api_url'] = [
    $valid_settings,
  ];
  $data['not set customer_site'] = [
    $valid_settings,
  ];
  $data['missing account_name'][0]['account_name'] = '';
  $data['missing api_url'][0]['js_path'] = '';
  unset($data['not set customer_site'][0]['customer_site']);
  return $data;
}