@@ -236,6 +236,7 @@ public function testApplyToItem()
236236 $ queryBuilderProphecy ->addSelect ('partial relatedDummy4_a5.{id} ' )->shouldBeCalledTimes (1 );
237237 $ queryBuilderProphecy ->addSelect ('singleInheritanceRelation_a6 ' )->shouldBeCalledTimes (1 );
238238 $ queryBuilderProphecy ->getDQLPart ('join ' )->willReturn ([]);
239+ $ queryBuilderProphecy ->getDQLPart ('select ' )->willReturn ([]);
239240
240241 $ queryBuilder = $ queryBuilderProphecy ->reveal ();
241242 $ orderExtensionTest = new EagerLoadingExtension ($ propertyNameCollectionFactoryProphecy ->reveal (), $ propertyMetadataFactoryProphecy ->reveal (), $ resourceMetadataFactoryProphecy ->reveal (), 30 , false , null , null , true );
@@ -895,6 +896,7 @@ public function testApplyToCollectionNoPartial()
895896 $ queryBuilderProphecy ->addSelect ('relatedDummy_a1 ' )->shouldBeCalledTimes (1 );
896897 $ queryBuilderProphecy ->addSelect ('relatedDummy2_a2 ' )->shouldBeCalledTimes (1 );
897898 $ queryBuilderProphecy ->getDQLPart ('join ' )->willReturn ([]);
899+ $ queryBuilderProphecy ->getDQLPart ('select ' )->willReturn ([]);
898900
899901 $ queryBuilder = $ queryBuilderProphecy ->reveal ();
900902 $ eagerExtensionTest = new EagerLoadingExtension ($ propertyNameCollectionFactoryProphecy ->reveal (), $ propertyMetadataFactoryProphecy ->reveal (), $ resourceMetadataFactoryProphecy ->reveal (), 30 );
@@ -960,6 +962,7 @@ private function doTestApplyToCollectionWithANonReadableButFetchEagerProperty(bo
960962 $ queryBuilderProphecy ->addSelect ('relatedDummy_a1 ' )->shouldBeCalledTimes (1 );
961963 $ queryBuilderProphecy ->addSelect ('relatedDummy2_a2 ' )->shouldBeCalledTimes (1 );
962964 $ queryBuilderProphecy ->getDQLPart ('join ' )->willReturn ([]);
965+ $ queryBuilderProphecy ->getDQLPart ('select ' )->willReturn ([]);
963966
964967 $ queryBuilder = $ queryBuilderProphecy ->reveal ();
965968 $ eagerExtensionTest = new EagerLoadingExtension ($ propertyNameCollectionFactoryProphecy ->reveal (), $ propertyMetadataFactoryProphecy ->reveal (), $ resourceMetadataFactoryProphecy ->reveal (), 30 );
@@ -1004,6 +1007,7 @@ public function testApplyToCollectionWithExistingJoin(string $joinType): void
10041007 new Join ($ joinType , 'o.relatedDummy ' , 'existing_join_alias ' ),
10051008 ],
10061009 ]);
1010+ $ queryBuilderProphecy ->getDQLPart ('select ' )->willReturn ([]);
10071011 $ queryBuilderProphecy ->addSelect ('existing_join_alias ' )->shouldBeCalledTimes (1 );
10081012
10091013 $ queryBuilder = $ queryBuilderProphecy ->reveal ();
0 commit comments