You are here

public function SettingsHelperTest::testIsInvalidCredential 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::testIsInvalidCredential()

Tests the isInvalidCredential() method.

@covers ::isInvalidCredential

@dataProvider providerTestIsInvalidCredential

Parameters

array $full_settings:

boolean $expected:

File

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

Class

SettingsHelperTest
SettingsHelper Test.

Namespace

Drupal\Tests\acquia_lift\Unit\Service\Helper

Code

public function testIsInvalidCredential($full_settings, $expected) {
  $result = SettingsHelper::isInvalidCredential($full_settings);
  $this
    ->assertEquals($expected, $result);
}