Code Duplication    Length = 10-10 lines in 4 locations

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

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

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

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

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

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