| @@ 2815-2833 (lines=19) @@ | ||
| 2812 | * |
|
| 2813 | * @see \eZ\Publish\API\Repository\SearchService::findContent() |
|
| 2814 | */ |
|
| 2815 | public function testFindFacettedContent(Query $query, $fixture, $skipNotImplemented) |
|
| 2816 | { |
|
| 2817 | // Check using get_class since the others extend SetupFactory\Legacy |
|
| 2818 | if (ltrim(get_class($this->getSetupFactory()), '\\') === 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') { |
|
| 2819 | $this->markTestSkipped( |
|
| 2820 | 'Facets are not supported by the legacy search engine.' |
|
| 2821 | ); |
|
| 2822 | } |
|
| 2823 | ||
| 2824 | $this->assertQueryFixture( |
|
| 2825 | $query, |
|
| 2826 | $fixture, |
|
| 2827 | null, |
|
| 2828 | true, |
|
| 2829 | false, |
|
| 2830 | true, |
|
| 2831 | $skipNotImplemented |
|
| 2832 | ); |
|
| 2833 | } |
|
| 2834 | ||
| 2835 | /** |
|
| 2836 | * Test for the findContentInfo() method. |
|
| @@ 2841-2859 (lines=19) @@ | ||
| 2838 | * @dataProvider getFacettedSearches |
|
| 2839 | * @see \eZ\Publish\API\Repository\SearchService::findContentInfo() |
|
| 2840 | */ |
|
| 2841 | public function testFindFacettedContentInfo(Query $query, $fixture, $skipNotImplemented) |
|
| 2842 | { |
|
| 2843 | // Check using get_class since the others extend SetupFactory\Legacy |
|
| 2844 | if (ltrim(get_class($this->getSetupFactory()), '\\') === 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') { |
|
| 2845 | $this->markTestSkipped( |
|
| 2846 | 'Facets are not supported by the legacy search engine.' |
|
| 2847 | ); |
|
| 2848 | } |
|
| 2849 | ||
| 2850 | $this->assertQueryFixture( |
|
| 2851 | $query, |
|
| 2852 | $fixture, |
|
| 2853 | null, |
|
| 2854 | true, |
|
| 2855 | false, |
|
| 2856 | true, |
|
| 2857 | $skipNotImplemented |
|
| 2858 | ); |
|
| 2859 | } |
|
| 2860 | ||
| 2861 | /** |
|
| 2862 | * Test for the findContent() method. |
|