| @@ 301-310 (lines=10) @@ | ||
| 298 | * |
|
| 299 | * @return array |
|
| 300 | */ |
|
| 301 | public function providerForTestArchiveUrlAliasesForDeletedTranslations() |
|
| 302 | { |
|
| 303 | return [ |
|
| 304 | [314, [2]], |
|
| 305 | [315, [4]], |
|
| 306 | [316, [4]], |
|
| 307 | [317, [2, 8]], |
|
| 308 | [318, [2, 8]], |
|
| 309 | ]; |
|
| 310 | } |
|
| 311 | ||
| 312 | /** |
|
| 313 | * Test for the cleanupAfterPublish() method. |
|
| @@ 76-92 (lines=17) @@ | ||
| 73 | return $dom; |
|
| 74 | } |
|
| 75 | ||
| 76 | public function provideXpathAssertions() |
|
| 77 | { |
|
| 78 | return [ |
|
| 79 | ['/View'], |
|
| 80 | ['/View[@media-type="application/vnd.ez.api.View+xml"]'], |
|
| 81 | ['/View[@href="/content/views/test_view"]'], |
|
| 82 | ['/View/identifier'], |
|
| 83 | ['/View/identifier[text()="test_view"]'], |
|
| 84 | ['/View/Query'], |
|
| 85 | ['/View/Query[@media-type="application/vnd.ez.api.Query+xml"]'], |
|
| 86 | ['/View/Result'], |
|
| 87 | ['/View/Result[@media-type="application/vnd.ez.api.ViewResult+xml"]'], |
|
| 88 | ['/View/Result[@href="/content/views/test_view/results"]'], |
|
| 89 | ['/View/Result/searchHits/searchHit[@score="0.123" and @index="alexandria"]'], |
|
| 90 | ['/View/Result/searchHits/searchHit[@score="0.234" and @index="waze"]'], |
|
| 91 | ]; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * @param string $xpath |
|
| @@ 47-56 (lines=10) @@ | ||
| 44 | ); |
|
| 45 | } |
|
| 46 | ||
| 47 | public function setMatchingConfigProvider() |
|
| 48 | { |
|
| 49 | return [ |
|
| 50 | ['/foo/bar/', ['foo/bar']], |
|
| 51 | ['/foo/bar/', ['foo/bar']], |
|
| 52 | ['/foo/bar', ['foo/bar']], |
|
| 53 | [['/foo/bar/', 'baz/biz/'], ['foo/bar', 'baz/biz']], |
|
| 54 | [['foo/bar', 'baz/biz'], ['foo/bar', 'baz/biz']], |
|
| 55 | ]; |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * Returns a Repository mock configured to return the appropriate Section object with given section identifier. |
|