| @@ 65-75 (lines=11) @@ | ||
| 62 | $this->beConstructedWith($client, $bib); |
|
| 63 | } |
|
| 64 | ||
| 65 | public function it_provides_a_lazy_interface_to_holding_objects(AlmaClient $client, Bib $bib) |
|
| 66 | { |
|
| 67 | SpecHelper::expectNoRequests($client); |
|
| 68 | ||
| 69 | $holding_id = '12345'; // str_random(); |
|
| 70 | $holding = $this->get($holding_id); |
|
| 71 | ||
| 72 | $holding->shouldHaveType(Holding::class); |
|
| 73 | $holding->bib->shouldBe($bib); |
|
| 74 | $holding->holding_id->shouldBe($holding_id); |
|
| 75 | } |
|
| 76 | ||
| 77 | public function it_provides_a_lazy_array_interface_to_holding_objects(AlmaClient $client, Bib $bib) |
|
| 78 | { |
|
| @@ 77-87 (lines=11) @@ | ||
| 74 | $holding->holding_id->shouldBe($holding_id); |
|
| 75 | } |
|
| 76 | ||
| 77 | public function it_provides_a_lazy_array_interface_to_holding_objects(AlmaClient $client, Bib $bib) |
|
| 78 | { |
|
| 79 | SpecHelper::expectNoRequests($client); |
|
| 80 | ||
| 81 | $holding_id = '90123'; // str_random(); |
|
| 82 | $holding = $this[$holding_id]; |
|
| 83 | ||
| 84 | $holding->shouldHaveType(Holding::class); |
|
| 85 | $holding->bib->shouldBe($bib); |
|
| 86 | $holding->holding_id->shouldBe($holding_id); |
|
| 87 | } |
|
| 88 | ||
| 89 | public function it_is_countable(AlmaClient $client, UriInterface $url) |
|
| 90 | { |
|
| @@ 23-32 (lines=10) @@ | ||
| 20 | $client->sru = $sru; |
|
| 21 | } |
|
| 22 | ||
| 23 | public function it_provides_a_lazy_interface_to_bib_objects(AlmaClient $client) |
|
| 24 | { |
|
| 25 | SpecHelper::expectNoRequests($client); |
|
| 26 | ||
| 27 | $mms_id = '123'; // str_random(); |
|
| 28 | $bib = $this->get($mms_id); |
|
| 29 | ||
| 30 | $bib->shouldHaveType(Bib::class); |
|
| 31 | $bib->mms_id->shouldBe($mms_id); |
|
| 32 | } |
|
| 33 | ||
| 34 | public function it_provides_a_lazy_array_interface_to_bib_objects(AlmaClient $client) |
|
| 35 | { |
|
| @@ 34-43 (lines=10) @@ | ||
| 31 | $bib->mms_id->shouldBe($mms_id); |
|
| 32 | } |
|
| 33 | ||
| 34 | public function it_provides_a_lazy_array_interface_to_bib_objects(AlmaClient $client) |
|
| 35 | { |
|
| 36 | SpecHelper::expectNoRequests($client); |
|
| 37 | ||
| 38 | $mms_id = '123'; // str_random(); |
|
| 39 | $bib = $this[$mms_id]; |
|
| 40 | ||
| 41 | $bib->shouldHaveType(Bib::class); |
|
| 42 | $bib->mms_id->shouldBe($mms_id); |
|
| 43 | } |
|
| 44 | ||
| 45 | public function it_accepts_expand_parameter(AlmaClient $client, UriInterface $url) |
|
| 46 | { |
|