Code Duplication    Length = 12-14 lines in 3 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/Location/Gateway/DoctrineDatabaseTest.php 3 locations

@@ 81-92 (lines=12) @@
78
        self::assertLoadLocationProperties($data);
79
    }
80
81
    public function testLoadLocationList()
82
    {
83
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
84
        $handler = $this->getLocationGateway();
85
        $locationsData = $handler->getNodeDataList([77]);
86
87
        self::assertCount(1, $locationsData);
88
89
        $locationRow = reset($locationsData);
90
91
        self::assertLoadLocationProperties($locationRow);
92
    }
93
94
    /**
95
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
@@ 104-117 (lines=14) @@
101
        $handler->getBasicNodeData(1337);
102
    }
103
104
    public function testLoadLocationDataByContent()
105
    {
106
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
107
108
        $gateway = $this->getLocationGateway();
109
110
        $locationsData = $gateway->loadLocationDataByContent(75);
111
112
        self::assertCount(1, $locationsData);
113
114
        $locationRow = reset($locationsData);
115
116
        self::assertLoadLocationProperties($locationRow);
117
    }
118
119
    public function testLoadParentLocationDataForDraftContentAll()
120
    {
@@ 119-132 (lines=14) @@
116
        self::assertLoadLocationProperties($locationRow);
117
    }
118
119
    public function testLoadParentLocationDataForDraftContentAll()
120
    {
121
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
122
123
        $gateway = $this->getLocationGateway();
124
125
        $locationsData = $gateway->loadParentLocationsDataForDraftContent(226);
126
127
        $this->assertCount(1, $locationsData);
128
129
        $locationRow = reset($locationsData);
130
131
        self::assertLoadLocationProperties($locationRow);
132
    }
133
134
    public function testLoadLocationDataByContentLimitSubtree()
135
    {