public function SettingsHelperTest::providerTestIsInvalidCredential in Acquia Lift Connector 8
Data provider for testIsInvalidCredential().
File
- tests/
src/ Unit/ Service/ Helper/ SettingsHelperTest.php, line 113 - Contains \Drupal\Tests\acquia_lift\Service\Helper\SettingsHelperTest.
Class
- SettingsHelperTest
- SettingsHelper Test.
Namespace
Drupal\Tests\acquia_lift\Service\HelperCode
public function providerTestIsInvalidCredential() {
$data = [];
$valid_settings = $this
->getValidCredentialSettings();
$data['valid data 1'] = [
$valid_settings,
FALSE,
];
$data['valid data 2'] = [
$valid_settings,
FALSE,
];
$data['missing access_key'] = [
$valid_settings,
TRUE,
];
$data['missing account_name'] = [
$valid_settings,
TRUE,
];
$data['invalid api_url URL'] = [
$valid_settings,
TRUE,
];
$data['invalid js_path URL'] = [
$valid_settings,
TRUE,
];
$data['valid data 2'][0]['account_name'] = 'account_name_2';
$data['valid data 2'][0]['customer_site'] = '';
$data['valid data 2'][0]['js_path'] = 'js_path_2';
$data['missing account_name'][0]['account_name'] = '';
$data['missing access_key'][0]['access_key'] = NULL;
$data['invalid api_url URL'][0]['api_url'] = '\\\\////\\\\////';
$data['invalid js_path URL'][0]['js_path'] = 'invalid js path';
return $data;
}