| @@ 1842-1848 (lines=7) @@ | ||
| 1839 | ->with($this->isType('string')) |
|
| 1840 | ->will( |
|
| 1841 | $this->returnCallback( |
|
| 1842 | function ($languageCode) { |
|
| 1843 | if ($languageCode === 'Klingon') { |
|
| 1844 | throw new NotFoundException('Language', 'Klingon'); |
|
| 1845 | } |
|
| 1846 | ||
| 1847 | return new Language(['id' => 4242]); |
|
| 1848 | } |
|
| 1849 | ) |
|
| 1850 | ); |
|
| 1851 | ||
| @@ 4621-4627 (lines=7) @@ | ||
| 4618 | ->with($this->isType('string')) |
|
| 4619 | ->will( |
|
| 4620 | $this->returnCallback( |
|
| 4621 | function ($languageCode) { |
|
| 4622 | if ($languageCode === 'Klingon') { |
|
| 4623 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4624 | } |
|
| 4625 | ||
| 4626 | return new Language(['id' => 4242]); |
|
| 4627 | } |
|
| 4628 | ) |
|
| 4629 | ); |
|
| 4630 | ||
| @@ 4696-4702 (lines=7) @@ | ||
| 4693 | ->with($this->isType('string')) |
|
| 4694 | ->will( |
|
| 4695 | $this->returnCallback( |
|
| 4696 | function ($languageCode) { |
|
| 4697 | if ($languageCode === 'Klingon') { |
|
| 4698 | throw new NotFoundException('Language', 'Klingon'); |
|
| 4699 | } |
|
| 4700 | ||
| 4701 | return new Language(['id' => 4242]); |
|
| 4702 | } |
|
| 4703 | ) |
|
| 4704 | ); |
|
| 4705 | ||