Code Duplication    Length = 13-13 lines in 2 locations

spec/Bibs/HoldingSpec.php 1 location

@@ 44-56 (lines=13) @@
41
        $this->record->shouldHaveType(Record::class);
42
    }
43
44
    public function it_has_items(AlmaClient $client)
45
    {
46
        $client->getJSON('/bibs/abc/holdings/123/items')
47
            ->shouldBeCalled()
48
            ->willReturn(SpecHelper::getDummyData('items_response.json'));
49
50
        $items = $this->items;
51
        $items->shouldHaveCount(9);
52
53
        $items->rewind();
54
        $items->valid()->shouldBe(true);
55
        $items->current()->shouldHaveType(Item::class);
56
    }
57
}
58

spec/Bibs/RepresentationSpec.php 1 location

@@ 41-53 (lines=13) @@
38
        $this->label->shouldBe('High resolution TIFF images');
39
    }
40
41
    public function it_has_files(AlmaClient $client)
42
    {
43
        $client->getJSON('/bibs/abc/representations/123/files')
44
            ->shouldBeCalled()
45
            ->willReturn(SpecHelper::getDummyData('files_response.json'));
46
47
        $files = $this->files;
48
        $files->shouldHaveCount(96);
49
50
        $files->rewind();
51
        $files->valid()->shouldBe(true);
52
        $files->current()->shouldHaveType(File::class);
53
    }
54
}
55