@@ -23,6 +23,9 @@ |
||
23 | 23 | $this->shouldHaveType(ElectronicCollections::class); |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param AlmaClient $client |
|
28 | + */ |
|
26 | 29 | protected function expectRequest($client) |
27 | 30 | { |
28 | 31 | $client->getJSON('/bibs/abc/e-collections') |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Scriptotek\Alma\Bibs\ElectronicCollections; |
7 | 7 | use Scriptotek\Alma\Client as AlmaClient; |
8 | 8 | use PhpSpec\ObjectBehavior; |
9 | -use Prophecy\Argument; |
|
10 | 9 | use Scriptotek\Alma\Electronic\Collection; |
11 | 10 | use spec\Scriptotek\Alma\SpecHelper; |
12 | 11 |
@@ -25,6 +25,9 @@ |
||
25 | 25 | $this->shouldHaveType(Portfolio::class); |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param AlmaClient $client |
|
30 | + */ |
|
28 | 31 | protected function expectRequest($client) |
29 | 32 | { |
30 | 33 | $client->getJSON('/bibs/abc/portfolios/123') |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace spec\Scriptotek\Alma\Bibs; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | use Scriptotek\Alma\Bibs\Bib; |
8 | 7 | use Scriptotek\Alma\Bibs\Portfolio; |
9 | -use Scriptotek\Alma\Bibs\Portfolios; |
|
10 | 8 | use Scriptotek\Alma\Client as AlmaClient; |
11 | 9 | use Scriptotek\Alma\Electronic\Collection; |
12 | 10 | use spec\Scriptotek\Alma\SpecHelper; |
@@ -23,6 +23,9 @@ |
||
23 | 23 | $this->shouldHaveType(Portfolios::class); |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param AlmaClient $client |
|
28 | + */ |
|
26 | 29 | protected function expectRequest($client) |
27 | 30 | { |
28 | 31 | $client->getJSON('/bibs/abc/portfolios') |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace spec\Scriptotek\Alma\Bibs; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | use Scriptotek\Alma\Bibs\Bib; |
8 | -use Scriptotek\Alma\Bibs\Portfolio; |
|
9 | 7 | use Scriptotek\Alma\Bibs\Portfolios; |
10 | 8 | use Scriptotek\Alma\Client as AlmaClient; |
11 | 9 | use spec\Scriptotek\Alma\SpecHelper; |
@@ -20,6 +20,9 @@ |
||
20 | 20 | $this->beConstructedWith($client, $bib, $representation_id); |
21 | 21 | } |
22 | 22 | |
23 | + /** |
|
24 | + * @param AlmaClient $client |
|
25 | + */ |
|
23 | 26 | protected function expectRequest($client) |
24 | 27 | { |
25 | 28 | $client->getJSON('/bibs/abc/representations/123') |
@@ -4,11 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use Scriptotek\Alma\Bibs\Bib; |
6 | 6 | use Scriptotek\Alma\Bibs\File; |
7 | -use Scriptotek\Alma\Bibs\Representations; |
|
8 | 7 | use Scriptotek\Alma\Bibs\Representation; |
9 | 8 | use Scriptotek\Alma\Client as AlmaClient; |
10 | 9 | use PhpSpec\ObjectBehavior; |
11 | -use Prophecy\Argument; |
|
12 | 10 | use spec\Scriptotek\Alma\SpecHelper; |
13 | 11 | |
14 | 12 | class RepresentationSpec extends ObjectBehavior |
@@ -22,6 +22,9 @@ |
||
22 | 22 | $this->shouldHaveType(Representations::class); |
23 | 23 | } |
24 | 24 | |
25 | + /** |
|
26 | + * @param AlmaClient $client |
|
27 | + */ |
|
25 | 28 | protected function expectRequest($client) |
26 | 29 | { |
27 | 30 | $client->getJSON('/bibs/abc/representations') |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Scriptotek\Alma\Bibs\Representations; |
7 | 7 | use Scriptotek\Alma\Client as AlmaClient; |
8 | 8 | use PhpSpec\ObjectBehavior; |
9 | -use Prophecy\Argument; |
|
10 | 9 | use spec\Scriptotek\Alma\SpecHelper; |
11 | 10 | |
12 | 11 | class RepresentationsSpec extends ObjectBehavior |