You are here

public function SettingsHelperTest::providerTestIsInvalidCredentialAssetsUrl in Acquia Lift Connector 8.4

Same name and namespace in other branches
  1. 8.3 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 103

Class

SettingsHelperTest
SettingsHelper Test.

Namespace

Drupal\Tests\acquia_lift\Unit\Service\Helper

Code

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;
}