Code Duplication    Length = 10-10 lines in 4 locations

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

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

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

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

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerLocationSortTest.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/HandlerLocationTest.php 1 location

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