Code Duplication    Length = 8-11 lines in 2 locations

tests/CommentsExtensionTest.php 2 locations

@@ 199-206 (lines=8) @@
196
        $this->assertTrue($item->canModerateComments());
197
    }
198
199
    public function testGetCommentRSSLink()
200
    {
201
        Config::inst()->update('SilverStripe\\Control\\Director', 'alternate_base_url', 'http://unittesting.local');
202
203
        $item = $this->objFromFixture(CommentableItem::class, 'first');
204
        $link = $item->getCommentRSSLink();
205
        $this->assertEquals('http://unittesting.local/comments/rss', $link);
206
    }
207
208
    public function testGetCommentRSSLinkPage()
209
    {
@@ 208-218 (lines=11) @@
205
        $this->assertEquals('http://unittesting.local/comments/rss', $link);
206
    }
207
208
    public function testGetCommentRSSLinkPage()
209
    {
210
        Config::inst()->update('SilverStripe\\Control\\Director', 'alternate_base_url', 'http://unittesting.local');
211
212
        $item = $this->objFromFixture(CommentableItem::class, 'first');
213
        $page = $item->getCommentRSSLinkPage();
214
        $this->assertEquals(
215
            'http://unittesting.local/comments/rss/SilverStripe-Comments-Tests-Stubs-CommentableItem/' . $item->ID,
216
            $page
217
        );
218
    }
219
220
    public function testCommentsForm()
221
    {