@@ -489,6 +489,7 @@ discard block |
||
| 489 | 489 | /** |
| 490 | 490 | * @depends testAddContentTypeDraftFieldDefinition |
| 491 | 491 | * @covers GET /content/types/<contentTypeId>/fieldDefinitions/<fieldDefinitionId> |
| 492 | + * @param Response $fieldDefinitionHref |
|
| 492 | 493 | */ |
| 493 | 494 | public function testLoadContentTypeFieldDefinition($fieldDefinitionHref) |
| 494 | 495 | { |
@@ -653,7 +654,7 @@ discard block |
||
| 653 | 654 | } |
| 654 | 655 | |
| 655 | 656 | /** |
| 656 | - * @param $response |
|
| 657 | + * @param Response $response |
|
| 657 | 658 | * @return ContentTypeGroupList |
| 658 | 659 | */ |
| 659 | 660 | private function parseContentTypeGroupListFromResponse($response): ContentTypeGroupList |
@@ -661,6 +662,10 @@ discard block |
||
| 661 | 662 | $struct = json_decode($response->getContent(), true); |
| 662 | 663 | $contentTypeGroupList = new ContentTypeGroupList( |
| 663 | 664 | array_map( |
| 665 | + |
|
| 666 | + /** |
|
| 667 | + * @param Response $row |
|
| 668 | + */ |
|
| 664 | 669 | function (array $row) { |
| 665 | 670 | return new ContentTypeGroup( |
| 666 | 671 | [ |
@@ -676,7 +681,7 @@ discard block |
||
| 676 | 681 | } |
| 677 | 682 | |
| 678 | 683 | /** |
| 679 | - * @param $response |
|
| 684 | + * @param Response $response |
|
| 680 | 685 | * @return ContentTypeInfoList |
| 681 | 686 | */ |
| 682 | 687 | private function parseContentTypeInfoListFromResponse($response): ContentTypeInfoList |
@@ -684,6 +689,10 @@ discard block |
||
| 684 | 689 | $struct = json_decode($response->getContent(), true); |
| 685 | 690 | $contentTypeInfoList = new ContentTypeInfoList( |
| 686 | 691 | array_map( |
| 692 | + |
|
| 693 | + /** |
|
| 694 | + * @param Response $row |
|
| 695 | + */ |
|
| 687 | 696 | function (array $row) { |
| 688 | 697 | return new ContentType( |
| 689 | 698 | [ |
@@ -733,6 +742,9 @@ discard block |
||
| 733 | 742 | ); |
| 734 | 743 | } |
| 735 | 744 | |
| 745 | + /** |
|
| 746 | + * @param Response $response |
|
| 747 | + */ |
|
| 736 | 748 | private function parseContentTypeListFromRespose($response) |
| 737 | 749 | { |
| 738 | 750 | } |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | /** |
| 243 | 243 | * @param \Buzz\Message\Response |
| 244 | - * @return \eZ\Publish\API\Repository\Values\Content\Location |
|
| 244 | + * @return Response |
|
| 245 | 245 | */private function parseLocationFromResponse(Response $response) |
| 246 | 246 | { |
| 247 | 247 | $jsonStruct = $this->parseJsonResponse($response); |
@@ -260,6 +260,7 @@ discard block |
||
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | /** |
| 263 | + * @param Response $response |
|
| 263 | 264 | * @return \eZ\Publish\API\Repository\Values\Content\LocationList |
| 264 | 265 | */private function parseLocationListFromResponse($response) |
| 265 | 266 | { |
@@ -268,6 +269,10 @@ discard block |
||
| 268 | 269 | return new LocationList( |
| 269 | 270 | [ |
| 270 | 271 | 'locations' => array_map( |
| 272 | + |
|
| 273 | + /** |
|
| 274 | + * @param Response $location |
|
| 275 | + */ |
|
| 271 | 276 | function ($location) { |
| 272 | 277 | return new Location( |
| 273 | 278 | [ |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | namespace eZ\Bundle\EzPublishRestBundle\Tests\Functional; |
| 12 | 12 | |
| 13 | 13 | use Buzz\Message\Request as HttpRequest; |
| 14 | -use Buzz\Message\Response as HttpResponse; |
|
| 15 | 14 | use Buzz\Message\Response; |
| 16 | 15 | use PHPUnit_Framework_TestCase; |
| 17 | 16 | |