You are here

public function SettingsHelperTest::testIsInvalidCredentialSiteId in Acquia Lift Connector 8.3

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/Service/Helper/SettingsHelperTest.php \Drupal\Tests\acquia_lift\Unit\Service\Helper\SettingsHelperTest::testIsInvalidCredentialSiteId()

Tests the isInvalidCredentialSiteId() method.

@covers ::isInvalidCredentialSiteId

@dataProvider providerTestIsInvalidCredentialSiteId

Parameters

string $setting:

boolean $expected:

File

tests/src/Unit/Service/Helper/SettingsHelperTest.php, line 64

Class

SettingsHelperTest
SettingsHelper Test.

Namespace

Drupal\Tests\acquia_lift\Unit\Service\Helper

Code

public function testIsInvalidCredentialSiteId($setting, $expected) {
  $result = SettingsHelper::isInvalidCredentialSiteId($setting);
  $this
    ->assertEquals($expected, $result);
}