@@ -229,23 +229,23 @@ public class fflib_ApexMocksUtilsTest
229229StockKeepingUnit = ' P2'
230230);
231231
232- OrderItem oi1 = new OrderItem (
233- Id = fflib_IDGenerator .generate (OrderItem .SObjectType ),
232+ OpportunityLineItem oli1 = new OpportunityLineItem (
233+ Id = fflib_IDGenerator .generate (OpportunityLineItem .SObjectType ),
234234Product2Id = prod1 .Id ,
235235Product2 = prod1 ,
236236UnitPrice = 10 ,
237237Quantity = 1
238238);
239239
240- OrderItem oi2 = new OrderItem (
241- Id = fflib_IDGenerator .generate (OrderItem .SObjectType ),
240+ OpportunityLineItem oli2 = new OpportunityLineItem (
241+ Id = fflib_IDGenerator .generate (OpportunityLineItem .SObjectType ),
242242Product2Id = prod2 .Id ,
243243Product2 = prod2 ,
244244UnitPrice = 10 ,
245245Quantity = 1
246246);
247247
248- Order order = new Order ();
248+ Opportunity opportunity = new Opportunity ();
249249
250250Exception exceptionThatWasCalled = null ;
251251
@@ -254,10 +254,10 @@ public class fflib_ApexMocksUtilsTest
254254
255255try {
256256fflib_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 } }
261261);
262262} catch (JSONException e ) {
263263exceptionThatWasCalled = e ;
0 commit comments