Code Duplication    Length = 10-12 lines in 2 locations

eZ/Bundle/EzPublishRestBundle/Tests/Functional/ContentTest.php 2 locations

@@ 106-115 (lines=10) @@
103
    /**
104
     * @depends testPublishContent
105
     */
106
    public function testLoadContent($restContentHref)
107
    {
108
        $response = $this->sendHttpRequest(
109
            $this->createHttpRequest('GET', $restContentHref, '', 'ContentInfo+json')
110
        );
111
112
        self::assertHttpResponseCodeEquals($response, 200);
113
114
        return $response;
115
    }
116
117
    /**
118
     * @depends testLoadContent
@@ 200-211 (lines=12) @@
197
     *
198
     * @param string $restContentVersionHref
199
     */
200
    public function testLoadContentVersion($restContentVersionHref)
201
    {
202
        $response = $this->sendHttpRequest(
203
            $this->createHttpRequest('GET', $restContentVersionHref, '', 'Version+json')
204
        );
205
206
        self::assertHttpResponseCodeEquals($response, 200);
207
        // @todo test data
208
        // @todo test filtering (language, fields, etc)
209
210
        return $response;
211
    }
212
213
    /**
214
     * @depends testLoadContentVersion