Skip to content

Commit

Permalink
Test fix for package
Browse files Browse the repository at this point in the history
  • Loading branch information
pserquiz committed May 29, 2020
1 parent ab482f4 commit 6c29f68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions force-app/main/default/classes/StatusReportsHandlerTest.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -68,7 +69,7 @@ public with sharing class StatusReportsHandlerTest {
@IsTest
public static void sendStatusReportRequest() {
Test.setMock(HttpCalloutMock.class, new StatusReportHttpCalloutMock());
List<Account> department = [SELECT Id FROM Account];
List<Account> 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',
Expand All @@ -93,8 +94,7 @@ public with sharing class StatusReportsHandlerTest {
@IsTest
public static void sendStatusReportRequest_error() {
Test.setMock(HttpCalloutMock.class, new StatusReportHttpCalloutMockError());
List<Account> department = [SELECT Id FROM Account];
System.debug('pedro: '+ department);
List<Account> 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',
Expand Down

0 comments on commit 6c29f68

Please sign in to comment.