eZ/Publish/Core/MVC/Symfony/SiteAccess/Tests/Compound/CompoundAndTest.php 1 location
|
@@ 158-169 (lines=12) @@
|
| 155 |
|
); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
public function testReverseMatchSiteAccessNotConfigured() |
| 159 |
|
{ |
| 160 |
|
$compoundMatcher = $this->buildMatcher(); |
| 161 |
|
$this->matcherBuilder |
| 162 |
|
->expects($this->any()) |
| 163 |
|
->method('buildMatcher') |
| 164 |
|
->will($this->returnValue($this->createMock(VersatileMatcher::class))); |
| 165 |
|
|
| 166 |
|
$compoundMatcher->setRequest($this->createMock(SimplifiedRequest::class)); |
| 167 |
|
$compoundMatcher->setMatcherBuilder($this->matcherBuilder); |
| 168 |
|
$this->assertNull($compoundMatcher->reverseMatch('not_configured_sa')); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
public function testReverseMatchNotVersatile() |
| 172 |
|
{ |
eZ/Publish/Core/MVC/Symfony/SiteAccess/Tests/Compound/CompoundOrTest.php 1 location
|
@@ 115-126 (lines=12) @@
|
| 112 |
|
); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
public function testReverseMatchSiteAccessNotConfigured() |
| 116 |
|
{ |
| 117 |
|
$compoundMatcher = $this->buildMatcher(); |
| 118 |
|
$this->matcherBuilder |
| 119 |
|
->expects($this->any()) |
| 120 |
|
->method('buildMatcher') |
| 121 |
|
->will($this->returnValue($this->createMock(VersatileMatcher::class))); |
| 122 |
|
|
| 123 |
|
$compoundMatcher->setRequest($this->createMock(SimplifiedRequest::class)); |
| 124 |
|
$compoundMatcher->setMatcherBuilder($this->matcherBuilder); |
| 125 |
|
$this->assertNull($compoundMatcher->reverseMatch('not_configured_sa')); |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
public function testReverseMatchNotVersatile() |
| 129 |
|
{ |