eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Identifier/ContentTypeTest.php 1 location
|
@@ 39-48 (lines=10) @@
|
| 36 |
|
* @param \eZ\Publish\API\Repository\Repository $repository |
| 37 |
|
* @param bool $expectedResult |
| 38 |
|
*/ |
| 39 |
|
public function testMatchLocation($matchingConfig, Repository $repository, $expectedResult) |
| 40 |
|
{ |
| 41 |
|
$this->matcher->setRepository($repository); |
| 42 |
|
$this->matcher->setMatchingConfig($matchingConfig); |
| 43 |
|
|
| 44 |
|
$this->assertSame( |
| 45 |
|
$expectedResult, |
| 46 |
|
$this->matcher->matchLocation($this->generateLocationMock()) |
| 47 |
|
); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public function matchLocationProvider() |
| 51 |
|
{ |
eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Id/ContentTypeGroupTest.php 1 location
|
@@ 40-49 (lines=10) @@
|
| 37 |
|
* @param \eZ\Publish\API\Repository\Repository $repository |
| 38 |
|
* @param bool $expectedResult |
| 39 |
|
*/ |
| 40 |
|
public function testMatchLocation($matchingConfig, Repository $repository, $expectedResult) |
| 41 |
|
{ |
| 42 |
|
$this->matcher->setRepository($repository); |
| 43 |
|
$this->matcher->setMatchingConfig($matchingConfig); |
| 44 |
|
|
| 45 |
|
$this->assertSame( |
| 46 |
|
$expectedResult, |
| 47 |
|
$this->matcher->matchLocation($this->generateLocationMock()) |
| 48 |
|
); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
public function matchLocationProvider() |
| 52 |
|
{ |
eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/UrlAliasTest.php 1 location
|
@@ 112-120 (lines=9) @@
|
| 109 |
|
* @param \eZ\Publish\API\Repository\Repository $repository |
| 110 |
|
* @param bool $expectedResult |
| 111 |
|
*/ |
| 112 |
|
public function testMatchLocation($matchingConfig, Repository $repository, $expectedResult) |
| 113 |
|
{ |
| 114 |
|
$this->matcher->setRepository($repository); |
| 115 |
|
$this->matcher->setMatchingConfig($matchingConfig); |
| 116 |
|
$this->assertSame( |
| 117 |
|
$expectedResult, |
| 118 |
|
$this->matcher->matchLocation($this->getLocationMock()) |
| 119 |
|
); |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
public function matchLocationProvider() |
| 123 |
|
{ |