public function PathMatcherTest::testMatchNoMatch in Acquia Lift Connector 8
Tests the match() method - no match.
@covers ::match
File
- tests/
src/ Unit/ Service/ Helper/ PathMatcherTest.php, line 49 - Contains \Drupal\Tests\acquia_lift\Service\Helper\PathMatcherTest.
Class
- PathMatcherTest
- PathMatcher Test.
Namespace
Drupal\Tests\acquia_lift\Service\HelperCode
public function testMatchNoMatch() {
$this->basePathMatcher
->expects($this
->exactly(2))
->method('matchPath')
->willReturn(FALSE);
$pathMatcher = new PathMatcher($this->aliasManager, $this->basePathMatcher);
$is_matched = $pathMatcher
->match('A_PATH', 'A_PATTERN');
$this
->assertFalse($is_matched);
}