Code Duplication    Length = 8-8 lines in 2 locations

tests/Integration/CachedBuilder/FindOrFailTest.php 1 location

@@ 29-36 (lines=8) @@
26
        $this->assertEquals($liveResults->toArray(), $author->toArray());
27
    }
28
29
    public function testFindOrFailWithArrayReturnsResults()
30
    {
31
        $author = (new Author)->findOrFail([1, 2]);
32
        $uncachedAuthor = (new UncachedAuthor)->findOrFail([1, 2]);
33
34
        $this->assertEquals($uncachedAuthor->count(), $author->count());
35
        $this->assertEquals($uncachedAuthor->pluck("id"), $author->pluck("id"));
36
    }
37
}
38

tests/Integration/CachedBuilder/FindTest.php 1 location

@@ 54-61 (lines=8) @@
51
        $this->assertEquals($author2->id, 2);
52
    }
53
54
    public function testFindWithArrayReturnsResults()
55
    {
56
        $author = (new Author)->find([1, 2]);
57
        $uncachedAuthor = (new UncachedAuthor)->find([1, 2]);
58
59
        $this->assertEquals($uncachedAuthor->count(), $author->count());
60
        $this->assertEquals($uncachedAuthor->pluck("id"), $author->pluck("id"));
61
    }
62
63
    public function testFindWithSingleElementArrayDoesntConflictWithNormalFind()
64
    {