@@ -37,6 +37,10 @@ protected function checkIdentifierType($classname, $expectedType)
37
37
->setMethods (['setParameter ' , 'getResult ' , 'getSql ' , '_doExecute ' ])
38
38
->getMock ();
39
39
40
+ $ query
41
+ ->method ('getResult ' )
42
+ ->willReturn ([]);
43
+
40
44
$ query ->expects ($ this ->once ())
41
45
->method ('setParameter ' )
42
46
->with ('ORMQueryBuilderLoader_getEntitiesByIds_id ' , [1 , 2 ], $ expectedType )
@@ -66,6 +70,10 @@ public function testFilterNonIntegerValues()
66
70
->setMethods (['setParameter ' , 'getResult ' , 'getSql ' , '_doExecute ' ])
67
71
->getMock ();
68
72
73
+ $ query
74
+ ->method ('getResult ' )
75
+ ->willReturn ([]);
76
+
69
77
$ query ->expects ($ this ->once ())
70
78
->method ('setParameter ' )
71
79
->with ('ORMQueryBuilderLoader_getEntitiesByIds_id ' , [1 , 2 , 3 , '9223372036854775808 ' ], Connection::PARAM_INT_ARRAY )
@@ -98,6 +106,10 @@ public function testFilterEmptyUuids($entityClass)
98
106
->setMethods (['setParameter ' , 'getResult ' , 'getSql ' , '_doExecute ' ])
99
107
->getMock ();
100
108
109
+ $ query
110
+ ->method ('getResult ' )
111
+ ->willReturn ([]);
112
+
101
113
$ query ->expects ($ this ->once ())
102
114
->method ('setParameter ' )
103
115
->with ('ORMQueryBuilderLoader_getEntitiesByIds_id ' , ['71c5fd46-3f16-4abb-bad7-90ac1e654a2d ' , 'b98e8e11-2897-44df-ad24-d2627eb7f499 ' ], Connection::PARAM_STR_ARRAY )
@@ -133,6 +145,10 @@ public function testEmbeddedIdentifierName()
133
145
->setMethods (['setParameter ' , 'getResult ' , 'getSql ' , '_doExecute ' ])
134
146
->getMock ();
135
147
148
+ $ query
149
+ ->method ('getResult ' )
150
+ ->willReturn ([]);
151
+
136
152
$ query ->expects ($ this ->once ())
137
153
->method ('setParameter ' )
138
154
->with ('ORMQueryBuilderLoader_getEntitiesByIds_id_value ' , [1 , 2 , 3 ], Connection::PARAM_INT_ARRAY )
0 commit comments