Code Duplication    Length = 9-9 lines in 2 locations

spec/Bibs/ItemSpec.php 2 locations

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