| @@ 45-54 (lines=10) @@ | ||
| 42 | ); |
|
| 43 | } |
|
| 44 | ||
| 45 | public function setMatchingConfigProvider() |
|
| 46 | { |
|
| 47 | return array( |
|
| 48 | array('/foo/bar/', array('foo/bar')), |
|
| 49 | array('/foo/bar/', array('foo/bar')), |
|
| 50 | array('/foo/bar', array('foo/bar')), |
|
| 51 | array(array('/foo/bar/', 'baz/biz/'), array('foo/bar', 'baz/biz')), |
|
| 52 | array(array('foo/bar', 'baz/biz'), array('foo/bar', 'baz/biz')), |
|
| 53 | ); |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * Returns a Repository mock configured to return the appropriate Section object with given section identifier. |
|
| @@ 73-89 (lines=17) @@ | ||
| 70 | return $dom; |
|
| 71 | } |
|
| 72 | ||
| 73 | public function provideXpathAssertions() |
|
| 74 | { |
|
| 75 | return array( |
|
| 76 | array('/View'), |
|
| 77 | array('/View[@media-type="application/vnd.ez.api.View+xml"]'), |
|
| 78 | array('/View[@href="/content/views/test_view"]'), |
|
| 79 | array('/View/identifier'), |
|
| 80 | array('/View/identifier[text()="test_view"]'), |
|
| 81 | array('/View/Query'), |
|
| 82 | array('/View/Query[@media-type="application/vnd.ez.api.Query+xml"]'), |
|
| 83 | array('/View/Result'), |
|
| 84 | array('/View/Result[@media-type="application/vnd.ez.api.ViewResult+xml"]'), |
|
| 85 | array('/View/Result[@href="/content/views/test_view/results"]'), |
|
| 86 | array('/View/Result/searchHits/searchHit[@score="0.123" and @index="alexandria"]'), |
|
| 87 | array('/View/Result/searchHits/searchHit[@score="0.234" and @index="waze"]'), |
|
| 88 | ); |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * @param string $xpath |
|
| @@ 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. |
|