Code Duplication    Length = 8-8 lines in 2 locations

Tests/Integration/TaggableTraitTest.php 2 locations

@@ 74-81 (lines=8) @@
71
    }
72
73
    /** @test */
74
    public function it_can_get_pages_with_one_of_specified_tags()
75
    {
76
        $this->createPage(['original tag']);
77
        $this->createPage(['original-tag']);
78
        $this->createPage(['random tag']);
79
80
        $this->assertCount(2, Page::withTag(['original-tag', 'some-other-tag'])->get());
81
    }
82
83
    /** @test */
84
    public function it_gets_pages_with_all_specified_tags()
@@ 84-91 (lines=8) @@
81
    }
82
83
    /** @test */
84
    public function it_gets_pages_with_all_specified_tags()
85
    {
86
        $this->createPage(['original tag']);
87
        $this->createPage(['original-tag']);
88
        $this->createPage(['random tag', 'original-tag']);
89
90
        $this->assertCount(1, Page::whereTag(['original-tag', 'random-tag'])->get());
91
    }
92
93
    private function createPage(array $tags = [])
94
    {