eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Id/ContentTypeGroupTest.php 1 location
|
@@ 107-116 (lines=10) @@
|
| 104 |
|
* @param \eZ\Publish\API\Repository\Repository $repository |
| 105 |
|
* @param bool $expectedResult |
| 106 |
|
*/ |
| 107 |
|
public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult) |
| 108 |
|
{ |
| 109 |
|
$this->matcher->setRepository($repository); |
| 110 |
|
$this->matcher->setMatchingConfig($matchingConfig); |
| 111 |
|
|
| 112 |
|
$this->assertSame( |
| 113 |
|
$expectedResult, |
| 114 |
|
$this->matcher->matchContentInfo($this->getContentInfoMock(['contentTypeId' => 42])) |
| 115 |
|
); |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
public function matchContentInfoProvider() |
| 119 |
|
{ |
eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Identifier/ContentTypeTest.php 1 location
|
@@ 106-117 (lines=12) @@
|
| 103 |
|
* @param \eZ\Publish\API\Repository\Repository $repository |
| 104 |
|
* @param bool $expectedResult |
| 105 |
|
*/ |
| 106 |
|
public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult) |
| 107 |
|
{ |
| 108 |
|
$this->matcher->setRepository($repository); |
| 109 |
|
$this->matcher->setMatchingConfig($matchingConfig); |
| 110 |
|
|
| 111 |
|
$this->assertSame( |
| 112 |
|
$expectedResult, |
| 113 |
|
$this->matcher->matchContentInfo( |
| 114 |
|
$this->getContentInfoMock(['contentTypeId' => 42]) |
| 115 |
|
) |
| 116 |
|
); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
public function matchContentInfoProvider() |
| 120 |
|
{ |
eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Identifier/SectionTest.php 1 location
|
@@ 133-141 (lines=9) @@
|
| 130 |
|
* @param \eZ\Publish\API\Repository\Repository $repository |
| 131 |
|
* @param bool $expectedResult |
| 132 |
|
*/ |
| 133 |
|
public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult) |
| 134 |
|
{ |
| 135 |
|
$this->matcher->setRepository($repository); |
| 136 |
|
$this->matcher->setMatchingConfig($matchingConfig); |
| 137 |
|
$this->assertSame( |
| 138 |
|
$expectedResult, |
| 139 |
|
$this->matcher->matchContentInfo($this->getContentInfoMock(['sectionId' => 1])) |
| 140 |
|
); |
| 141 |
|
} |
| 142 |
|
} |
| 143 |
|
|
eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/DepthTest.php 1 location
|
@@ 86-94 (lines=9) @@
|
| 83 |
|
* @param \eZ\Publish\API\Repository\Repository $repository |
| 84 |
|
* @param bool $expectedResult |
| 85 |
|
*/ |
| 86 |
|
public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult) |
| 87 |
|
{ |
| 88 |
|
$this->matcher->setRepository($repository); |
| 89 |
|
$this->matcher->setMatchingConfig($matchingConfig); |
| 90 |
|
$this->assertSame( |
| 91 |
|
$expectedResult, |
| 92 |
|
$this->matcher->matchContentInfo($this->getContentInfoMock(['mainLocationId' => 42])) |
| 93 |
|
); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
public function matchContentInfoProvider() |
| 97 |
|
{ |
eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Id/ParentLocationTest.php 1 location
|
@@ 77-85 (lines=9) @@
|
| 74 |
|
* @param \eZ\Publish\API\Repository\Repository $repository |
| 75 |
|
* @param bool $expectedResult |
| 76 |
|
*/ |
| 77 |
|
public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult) |
| 78 |
|
{ |
| 79 |
|
$this->matcher->setRepository($repository); |
| 80 |
|
$this->matcher->setMatchingConfig($matchingConfig); |
| 81 |
|
$this->assertSame( |
| 82 |
|
$expectedResult, |
| 83 |
|
$this->matcher->matchContentInfo($this->getContentInfoMock(['mainLocationId' => 42])) |
| 84 |
|
); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
public function matchContentInfoProvider() |
| 88 |
|
{ |