public function PathContextTest::providerTestShouldAttach in Acquia Lift Connector 8.4
Same name and namespace in other branches
- 8.3 tests/src/Unit/Service/Context/PathContextTest.php \Drupal\Tests\acquia_lift\Unit\Service\Context\PathContextTest::providerTestShouldAttach()
Data provider for testShouldAttach().
File
- tests/
src/ Unit/ Service/ Context/ PathContextTest.php, line 129
Class
- PathContextTest
- PathContextTest Test.
Namespace
Drupal\Tests\acquia_lift\Unit\Service\ContextCode
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;
}