| @@ 26-35 (lines=10) @@ | ||
| 23 | $this->shouldImplement(\Iterator::class); |
|
| 24 | } |
|
| 25 | ||
| 26 | function it_provides_a_lazy_interface_to_libary_objects(AlmaClient $client) |
|
| 27 | { |
|
| 28 | SpecHelper::expectNoRequests($client); |
|
| 29 | ||
| 30 | $libraryCode = 'THAT_LIBRARY'; |
|
| 31 | $library = $this->get($libraryCode); |
|
| 32 | ||
| 33 | $library->shouldBeAnInstanceOf(Library::class); |
|
| 34 | $library->code->shouldBe($libraryCode); |
|
| 35 | } |
|
| 36 | ||
| 37 | function it_provides_libraries(AlmaClient $client, UriInterface $url) |
|
| 38 | { |
|
| @@ 20-29 (lines=10) @@ | ||
| 17 | $this->beConstructedWith($client, $library); |
|
| 18 | } |
|
| 19 | ||
| 20 | function it_provides_a_lazy_interface_to_location_objects(AlmaClient $client) |
|
| 21 | { |
|
| 22 | SpecHelper::expectNoRequests($client); |
|
| 23 | ||
| 24 | $code = 'LOC_CODE'; |
|
| 25 | $location = $this->get($code); |
|
| 26 | ||
| 27 | $location->shouldBeAnInstanceOf(Location::class); |
|
| 28 | $location->code->shouldBe($code); |
|
| 29 | } |
|
| 30 | ||
| 31 | function it_provides_locations(AlmaClient $client, UriInterface $url) |
|
| 32 | { |
|