@@ -229,23 +229,23 @@ public class fflib_ApexMocksUtilsTest
229
229
StockKeepingUnit = ' P2'
230
230
);
231
231
232
- OrderItem oi1 = new OrderItem (
233
- Id = fflib_IDGenerator .generate (OrderItem .SObjectType ),
232
+ OpportunityLineItem oli1 = new OpportunityLineItem (
233
+ Id = fflib_IDGenerator .generate (OpportunityLineItem .SObjectType ),
234
234
Product2Id = prod1 .Id ,
235
235
Product2 = prod1 ,
236
236
UnitPrice = 10 ,
237
237
Quantity = 1
238
238
);
239
239
240
- OrderItem oi2 = new OrderItem (
241
- Id = fflib_IDGenerator .generate (OrderItem .SObjectType ),
240
+ OpportunityLineItem oli2 = new OpportunityLineItem (
241
+ Id = fflib_IDGenerator .generate (OpportunityLineItem .SObjectType ),
242
242
Product2Id = prod2 .Id ,
243
243
Product2 = prod2 ,
244
244
UnitPrice = 10 ,
245
245
Quantity = 1
246
246
);
247
247
248
- Order order = new Order ();
248
+ Opportunity opportunity = new Opportunity ();
249
249
250
250
Exception exceptionThatWasCalled = null ;
251
251
@@ -254,10 +254,10 @@ public class fflib_ApexMocksUtilsTest
254
254
255
255
try {
256
256
fflib_ApexMocksUtils .makeRelationship (
257
- List <Order >.class ,
258
- new List <Order >{ order },
259
- OrderItem . OrderId ,
260
- new List <List <OrderItem >>{ new List <OrderItem >{ oi1 , oi2 } }
257
+ List <Opportunity >.class ,
258
+ new List <Opportunity >{ opportunity },
259
+ OpportunityLineItem . OpportunityId ,
260
+ new List <List <OpportunityLineItem >>{ new List <OpportunityLineItem >{ oli1 , oli2 } }
261
261
);
262
262
} catch (JSONException e ) {
263
263
exceptionThatWasCalled = e ;
0 commit comments