From 6c29f683ade147711c0ff0507d1501c507931a6e Mon Sep 17 00:00:00 2001 From: pserquiz Date: Fri, 29 May 2020 11:16:08 -0700 Subject: [PATCH] Test fix for package --- force-app/main/default/classes/StatusReportsHandlerTest.cls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/classes/StatusReportsHandlerTest.cls b/force-app/main/default/classes/StatusReportsHandlerTest.cls index 88fc2db..910b463 100644 --- a/force-app/main/default/classes/StatusReportsHandlerTest.cls +++ b/force-app/main/default/classes/StatusReportsHandlerTest.cls @@ -52,6 +52,7 @@ public with sharing class StatusReportsHandlerTest { insert departmentParent; Account department = new Account( Name = 'DepartmentTest', + RecordTypeId = Constants.DIVISION_RECORDTYPE_ID, ParentId = departmentParent.Id, BillingStreet = 'testBillingStreet', BillingState = 'testBillingState', @@ -68,7 +69,7 @@ public with sharing class StatusReportsHandlerTest { @IsTest public static void sendStatusReportRequest() { Test.setMock(HttpCalloutMock.class, new StatusReportHttpCalloutMock()); - List department = [SELECT Id FROM Account]; + List department = [SELECT Id FROM Account WHERE RecordTypeId =: Constants.DIVISION_RECORDTYPE_ID]; Status_Report__c statusReport = new Status_Report__c( Type__c = 'Ventilator Beds', Status__c = 'Total', @@ -93,8 +94,7 @@ public with sharing class StatusReportsHandlerTest { @IsTest public static void sendStatusReportRequest_error() { Test.setMock(HttpCalloutMock.class, new StatusReportHttpCalloutMockError()); - List department = [SELECT Id FROM Account]; - System.debug('pedro: '+ department); + List department = [SELECT Id FROM Account WHERE RecordTypeId =: Constants.DIVISION_RECORDTYPE_ID]; Status_Report__c statusReport = new Status_Report__c( Type__c = 'Ventilator Beds', Status__c = 'Total',