spec/Conf/JobInstancesSpec.php 1 location
|
@@ 29-38 (lines=10) @@
|
| 26 |
|
$jobInstance->shouldBeAnInstanceOf(JobInstance::class); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function it_provides_jobintances(AlmaClient $client) |
| 30 |
|
{ |
| 31 |
|
$jobId = '1108569450000121'; |
| 32 |
|
$client->getJSON("/conf/jobs/{$jobId}/instances") |
| 33 |
|
->shouldBeCalled() |
| 34 |
|
->willReturn(SpecHelper::getDummyData('jobinstances_response.json')); |
| 35 |
|
|
| 36 |
|
$this->all()->shouldBeArray(); |
| 37 |
|
$this->all()[0]->shouldBeAnInstanceOf(JobInstance::class); |
| 38 |
|
} |
| 39 |
|
} |
| 40 |
|
|
spec/Conf/LibrariesSpec.php 1 location
|
@@ 36-45 (lines=10) @@
|
| 33 |
|
$library->code->shouldBe($libraryCode); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
public function it_provides_libraries(AlmaClient $client) |
| 37 |
|
{ |
| 38 |
|
$client->getJSON('/conf/libraries') |
| 39 |
|
->shouldBeCalled() |
| 40 |
|
->willReturn(SpecHelper::getDummyData('libraries_response.json')); |
| 41 |
|
|
| 42 |
|
$this->shouldHaveCount(27); |
| 43 |
|
$this->all()->shouldBeArray(); |
| 44 |
|
$this->all()[0]->shouldBeAnInstanceOf(Library::class); |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
|
spec/Conf/LocationsSpec.php 1 location
|
@@ 30-38 (lines=9) @@
|
| 27 |
|
$location->code->shouldBe($code); |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
public function it_provides_locations(AlmaClient $client) |
| 31 |
|
{ |
| 32 |
|
$client->getJSON('/conf/libraries/LIB_CODE/locations') |
| 33 |
|
->shouldBeCalled() |
| 34 |
|
->willReturn(SpecHelper::getDummyData('locations_response.json')); |
| 35 |
|
|
| 36 |
|
$this->all()->shouldBeArray(); |
| 37 |
|
$this->all()[0]->shouldBeAnInstanceOf(Location::class); |
| 38 |
|
} |
| 39 |
|
} |
| 40 |
|
|