Code Duplication    Length = 12-12 lines in 2 locations

spec/Bibs/ItemSpec.php 2 locations

@@ 50-61 (lines=12) @@
47
            ->shouldHaveType(Loan::class);
48
    }
49
50
    function it_can_be_on_loan(AlmaClient $client, User $user, Library $library, UriInterface $url)
51
    {
52
        $client->buildUrl('/bibs/990006312214702204/holdings/22163771200002204/items/23163771190002204/loans', [])
53
            ->willReturn($url);
54
55
        $client->getJSON($url)
56
            ->shouldBeCalled()
57
            ->willReturn(SpecHelper::getDummyData('item_loan_response.json'));
58
59
        $this->getLoan()->shouldHaveType(Loan::class);
60
        $this->loan->shouldHaveType(Loan::class);
61
    }
62
63
    function it_can_be_available(AlmaClient $client, User $user, Library $library, UriInterface $url)
64
    {
@@ 63-74 (lines=12) @@
60
        $this->loan->shouldHaveType(Loan::class);
61
    }
62
63
    function it_can_be_available(AlmaClient $client, User $user, Library $library, UriInterface $url)
64
    {
65
        $client->buildUrl('/bibs/990006312214702204/holdings/22163771200002204/items/23163771190002204/loans', [])
66
            ->willReturn($url);
67
68
        $client->getJSON($url)
69
            ->shouldBeCalled()
70
            ->willReturn(SpecHelper::getDummyData('item_no_loan_response.json'));
71
72
        $this->getLoan()->shouldBe(null);
73
        $this->loan->shouldBe(null);
74
    }
75
76
    function it_can_be_scanned_in(AlmaClient $client, Library $library, UriInterface $url)
77
    {