public function SettingsHelperTest::providerTestIsInvalidCredentialSiteId in Acquia Lift Connector 8.3
Same name and namespace in other branches
- 8.4 tests/src/Unit/Service/Helper/SettingsHelperTest.php \Drupal\Tests\acquia_lift\Unit\Service\Helper\SettingsHelperTest::providerTestIsInvalidCredentialSiteId()
Data provider for testIsInvalidCredentialSiteId().
File
- tests/
src/ Unit/ Service/ Helper/ SettingsHelperTest.php, line 72
Class
- SettingsHelperTest
- SettingsHelper Test.
Namespace
Drupal\Tests\acquia_lift\Unit\Service\HelperCode
public function providerTestIsInvalidCredentialSiteId() {
$data = [];
$data['invalid null'] = [
NULL,
TRUE,
];
$data['invalid empty'] = [
'',
TRUE,
];
$data['valid has "~" sign'] = [
'a~',
FALSE,
];
$data['valid alphanumeric 1'] = [
'a123',
FALSE,
];
$data['valid alphanumeric 2'] = [
'3Ab',
FALSE,
];
return $data;
}