Code Duplication    Length = 19-19 lines in 2 locations

eZ/Publish/API/Repository/Tests/SearchServiceTest.php 2 locations

@@ 2748-2766 (lines=19) @@
2745
     *
2746
     * @see \eZ\Publish\API\Repository\SearchService::findContent()
2747
     */
2748
    public function testFindFacettedContent(Query $query, $fixture, $skipNotImplemented)
2749
    {
2750
        // Check using get_class since the others extend SetupFactory\Legacy
2751
        if (ltrim(get_class($this->getSetupFactory()), '\\') === 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') {
2752
            $this->markTestSkipped(
2753
                'Facets are not supported by the legacy search engine.'
2754
            );
2755
        }
2756
2757
        $this->assertQueryFixture(
2758
            $query,
2759
            $fixture,
2760
            null,
2761
            true,
2762
            false,
2763
            true,
2764
            $skipNotImplemented
2765
        );
2766
    }
2767
2768
    /**
2769
     * Test for the findContentInfo() method.
@@ 2774-2792 (lines=19) @@
2771
     * @dataProvider getFacettedSearches
2772
     * @see \eZ\Publish\API\Repository\SearchService::findContentInfo()
2773
     */
2774
    public function testFindFacettedContentInfo(Query $query, $fixture, $skipNotImplemented)
2775
    {
2776
        // Check using get_class since the others extend SetupFactory\Legacy
2777
        if (ltrim(get_class($this->getSetupFactory()), '\\') === 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') {
2778
            $this->markTestSkipped(
2779
                'Facets are not supported by the legacy search engine.'
2780
            );
2781
        }
2782
2783
        $this->assertQueryFixture(
2784
            $query,
2785
            $fixture,
2786
            $this->getContentInfoFixtureClosure(),
2787
            true,
2788
            false,
2789
            true,
2790
            $skipNotImplemented
2791
        );
2792
    }
2793
2794
    /**
2795
     * Test for the findContent() method.