public function SettingsHelperTest::providerTestIsInvalidCredentialAssetsUrl 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::providerTestIsInvalidCredentialAssetsUrl()
Data provider for testIsInvalidCredentialAssetsUrl().
File
- tests/
src/ Unit/ Service/ Helper/ SettingsHelperTest.php, line 102
Class
- SettingsHelperTest
- SettingsHelper Test.
Namespace
Drupal\Tests\acquia_lift\Unit\Service\HelperCode
public function providerTestIsInvalidCredentialAssetsUrl() {
$data = [];
$data['invalid null'] = [
NULL,
TRUE,
];
$data['invalid empty'] = [
'',
TRUE,
];
$data['invalid has non-ascii characters'] = [
'不合法',
TRUE,
];
$data['valid url 1'] = [
'acquia',
FALSE,
];
$data['valid url 2'] = [
'acquia.com',
FALSE,
];
return $data;
}