Code Duplication    Length = 17-17 lines in 2 locations

tests/BlogTest.php 2 locations

@@ 316-332 (lines=17) @@
313
        );
314
    }
315
316
    public function testFilteredCategoriesTags()
317
    {
318
        $blog = $this->objFromFixture(Blog::class, 'FirstBlog');
319
        $controller = new BlogController($blog);
320
321
        // Posts
322
        $firstPostID = $this->idFromFixture(BlogPost::class, 'FirstBlogPost');
323
        $firstFuturePostID = $this->idFromFixture(BlogPost::class, 'FirstFutureBlogPost');
324
        $secondFuturePostID = $this->idFromFixture(BlogPost::class, 'SecondFutureBlogPost');
325
326
        // Request first tag
327
        $this->requestURL($controller, 'first-post/tag/first-tag');
328
        $this->assertIDsEquals(
329
            [$firstPostID, $firstFuturePostID, $secondFuturePostID],
330
            $controller->PaginatedList()
331
        );
332
    }
333
334
    public function testFilteredCategoriesArchive()
335
    {
@@ 334-350 (lines=17) @@
331
        );
332
    }
333
334
    public function testFilteredCategoriesArchive()
335
    {
336
        $blog = $this->objFromFixture(Blog::class, 'FirstBlog');
337
        $controller = new BlogController($blog);
338
339
        // Posts
340
        $firstPostID = $this->idFromFixture(BlogPost::class, 'FirstBlogPost');
341
        $secondPostID = $this->idFromFixture(BlogPost::class, 'SecondBlogPost');
342
        $secondFuturePostID = $this->idFromFixture(BlogPost::class, 'SecondFutureBlogPost');
343
344
        // Request 2013 posts
345
        $this->requestURL($controller, 'first-post/archive/2013');
346
        $this->assertIDsEquals(
347
            [$firstPostID, $secondPostID, $secondFuturePostID],
348
            $controller->PaginatedList()
349
        );
350
    }
351
352
    public function testDisabledProfiles()
353
    {