Code Duplication    Length = 10-10 lines in 4 locations

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerContentSortTest.php 1 location

@@ 44-53 (lines=10) @@
41
     * time, which is not required to spent, since we are only reading from the
42
     * database anyways.
43
     */
44
    public function setUp()
45
    {
46
        if (!self::$setUp) {
47
            parent::setUp();
48
            $this->insertDatabaseFixture(__DIR__ . '/../_fixtures/full_dump.php');
49
            self::$setUp = $this->handler;
50
        } else {
51
            $this->handler = self::$setUp;
52
        }
53
    }
54
55
    /**
56
     * Returns the content search handler to test.

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerContentTest.php 1 location

@@ 45-54 (lines=10) @@
42
     * time, which is not required to spent, since we are only reading from the
43
     * database anyways.
44
     */
45
    public function setUp()
46
    {
47
        if (!self::$setUp) {
48
            parent::setUp();
49
            $this->insertDatabaseFixture(__DIR__ . '/../_fixtures/full_dump.php');
50
            self::$setUp = $this->handler;
51
        } else {
52
            $this->handler = self::$setUp;
53
        }
54
    }
55
56
    /**
57
     * Assert that the elements are.

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerLocationSortTest.php 1 location

@@ 43-52 (lines=10) @@
40
     * time, which is not required to spent, since we are only reading from the
41
     * database anyways.
42
     */
43
    public function setUp()
44
    {
45
        if (!self::$setUp) {
46
            parent::setUp();
47
            $this->insertDatabaseFixture(__DIR__ . '/../_fixtures/full_dump.php');
48
            self::$setUp = $this->handler;
49
        } else {
50
            $this->handler = self::$setUp;
51
        }
52
    }
53
54
    /**
55
     * Assert that the elements are.

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerLocationTest.php 1 location

@@ 44-53 (lines=10) @@
41
     * time, which is not required to spent, since we are only reading from the
42
     * database anyways.
43
     */
44
    public function setUp()
45
    {
46
        if (!self::$setUp) {
47
            parent::setUp();
48
            $this->insertDatabaseFixture(__DIR__ . '/../_fixtures/full_dump.php');
49
            self::$setUp = $this->handler;
50
        } else {
51
            $this->handler = self::$setUp;
52
        }
53
    }
54
55
    /**
56
     * Assert that the elements are.