@@ -424,6 +424,14 @@ public function testGetResult()
424424 $ this ->assertInstanceOf (PaginatorInterface::class, $ result );
425425 }
426426
427+ public function testGetResultWithoutFetchJoinCollection ()
428+ {
429+ $ result = $ this ->getPaginationExtensionResult (false , false , false );
430+
431+ $ this ->assertInstanceOf (PartialPaginatorInterface::class, $ result );
432+ $ this ->assertInstanceOf (PaginatorInterface::class, $ result );
433+ }
434+
427435 public function testGetResultWithPartial ()
428436 {
429437 $ result = $ this ->getPaginationExtensionResult (true );
@@ -440,15 +448,15 @@ public function testSimpleGetResult()
440448 $ this ->assertInstanceOf (PaginatorInterface::class, $ result );
441449 }
442450
443- private function getPaginationExtensionResult (bool $ partial = false , bool $ legacy = false )
451+ private function getPaginationExtensionResult (bool $ partial = false , bool $ legacy = false , bool $ fetchJoinCollection = true )
444452 {
445453 $ requestStack = new RequestStack ();
446454 $ requestStack ->push (new Request (['partial ' => $ partial ]));
447455
448456 $ resourceMetadataFactoryProphecy = $ this ->prophesize (ResourceMetadataFactoryInterface::class);
449457
450458 if (!$ legacy ) {
451- $ resourceMetadataFactoryProphecy ->create ('Foo ' )->willReturn (new ResourceMetadata (null , null , null , [], [], ['pagination_partial ' => false , 'pagination_client_partial ' => true ]))->shouldBeCalled ();
459+ $ resourceMetadataFactoryProphecy ->create ('Foo ' )->willReturn (new ResourceMetadata (null , null , null , [], [], ['pagination_partial ' => false , 'pagination_client_partial ' => true , ' pagination_fetch_join_collection ' => $ fetchJoinCollection ]))->shouldBeCalled ();
452460 }
453461
454462 $ configuration = new Configuration ();
0 commit comments