You are here

public function PathContextTest::providerTestShouldAttach in Acquia Lift Connector 8

Data provider for testShouldAttach().

File

tests/src/Unit/Service/Context/PathContextTest.php, line 136
Contains \Drupal\Tests\acquia_lift\Service\Context\PathContextTest.

Class

PathContextTest
PathContextTest Test.

Namespace

Drupal\Tests\acquia_lift\Service\Context

Code

public function providerTestShouldAttach() {
  $set_invalid_credential = TRUE;
  $set_valid_credential = FALSE;
  $do_match_pattern = TRUE;
  $no_match_pattern = FALSE;
  $expect_should_attach = TRUE;
  $expect_should_not_attach = FALSE;
  $data['invalid credential'] = [
    $set_invalid_credential,
    $no_match_pattern,
    $expect_should_not_attach,
  ];
  $data['valid credential, matched pattern'] = [
    $set_valid_credential,
    $do_match_pattern,
    $expect_should_not_attach,
  ];
  $data['valid credential, no matched pattern'] = [
    $set_valid_credential,
    $no_match_pattern,
    $expect_should_attach,
  ];
  return $data;
}