@@ 18-27 (lines=10) @@ | ||
15 | $this->beConstructedWith($client); |
|
16 | } |
|
17 | ||
18 | public function it_provides_a_lazy_interface_to_codetable_objects(AlmaClient $client) |
|
19 | { |
|
20 | SpecHelper::expectNoRequests($client); |
|
21 | ||
22 | $ctid = 'myCodeTable'; // str_random(); |
|
23 | $bib = $this->get($ctid); |
|
24 | ||
25 | $bib->shouldHaveType(CodeTable::class); |
|
26 | $bib->code->shouldBe($ctid); |
|
27 | } |
|
28 | ||
29 | public function it_provides_a_lazy_array_interface_to_codetable_objects(AlmaClient $client) |
|
30 | { |
|
@@ 29-38 (lines=10) @@ | ||
26 | $bib->code->shouldBe($ctid); |
|
27 | } |
|
28 | ||
29 | public function it_provides_a_lazy_array_interface_to_codetable_objects(AlmaClient $client) |
|
30 | { |
|
31 | SpecHelper::expectNoRequests($client); |
|
32 | ||
33 | $ctid = 'myCodeTable'; // str_random(); |
|
34 | $ct = $this[$ctid]; |
|
35 | ||
36 | $ct->shouldHaveType(CodeTable::class); |
|
37 | $ct->code->shouldBe($ctid); |
|
38 | } |
|
39 | ||
40 | } |
|
41 |