Skip to content

Commit

Permalink
Merge pull request #190 from SFDO-Community/feature/TRACTION-448
Browse files Browse the repository at this point in the history
Test fix for package
  • Loading branch information
Cameron Goodman authored May 29, 2020
2 parents ab482f4 + 6c29f68 commit 46094f2
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 46094f2

Please sign in to comment.