You are here

public function SimpleReCaptchaFormManagerTest::testFormIdInList in Simple Google reCAPTCHA 8

Test the formIdInList().

@covers ::formIdInList

@dataProvider dataFormIdProvider

File

tests/src/Unit/SimpleReCaptchaFormManagerTest.php, line 24

Class

SimpleReCaptchaFormManagerTest
Class SimpleReCaptchaFormManagerTest.

Namespace

Drupal\Tests\simple_recaptcha\Unit

Code

public function testFormIdInList($formId, $list, bool $expected) {
  $result = SimpleReCaptchaFormManager::formIdInList($formId, $list);
  $this
    ->assertSame($result, $expected);
}