Code Duplication    Length = 10-12 lines in 2 locations

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

@@ 101-110 (lines=10) @@
98
    /**
99
     * @depends testPublishContent
100
     */
101
    public function testLoadContent($restContentHref)
102
    {
103
        $response = $this->sendHttpRequest(
104
            $this->createHttpRequest('GET', $restContentHref, '', 'ContentInfo+json')
105
        );
106
107
        self::assertHttpResponseCodeEquals($response, 200);
108
109
        return $response;
110
    }
111
112
    /**
113
     * @depends testLoadContent
@@ 195-206 (lines=12) @@
192
     *
193
     * @param string $restContentVersionHref
194
     */
195
    public function testLoadContentVersion($restContentVersionHref)
196
    {
197
        $response = $this->sendHttpRequest(
198
            $this->createHttpRequest('GET', $restContentVersionHref, '', 'Version+json')
199
        );
200
201
        self::assertHttpResponseCodeEquals($response, 200);
202
        // @todo test data
203
        // @todo test filtering (language, fields, etc)
204
205
        return $response;
206
    }
207
208
    /**
209
     * @depends testLoadContentVersion