Skip to content

Commit

Permalink
Merge pull request #1359 from bcgov/BCMOHAD-24466-V3
Browse files Browse the repository at this point in the history
BCMOHAD-24466 || changing from General_Queue to Migraine_Queue
  • Loading branch information
NataliaNikishina authored Sep 28, 2024
2 parents 939b1ae + 43539e1 commit 6fbfdf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions force-app/main/default/classes/QueueOwnerSetterTest.cls
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ public class QueueOwnerSetterTest {
@TestSetup
static void makeData() {

Group testGroup = [SELECT Id, Name, DeveloperName, Type FROM GROUP WHERE DeveloperName = 'General_Queue' LIMIT 1];
Group testGroup = [SELECT Id, Name, DeveloperName, Type FROM GROUP WHERE DeveloperName = 'Migraine_Queue' LIMIT 1];
if(testGroup == NULL){
testGroup = new Group(Name='General_Queue', DeveloperName='General_Queue', Type='Queue');
testGroup = new Group(Name='Migraine_Queue', DeveloperName='Migraine_Queue', Type='Queue');
insert testGroup;
}

Expand All @@ -24,14 +24,14 @@ public class QueueOwnerSetterTest {
insert saCase;

List<QueueOwnerSetter.CaseQueue> caseQueues = new List<QueueOwnerSetter.CaseQueue>();
caseQueues.add(newCaseQueue(saCase.Id, 'General_Queue'));
caseQueues.add(newCaseQueue(saCase.Id, 'Migraine_Queue'));

Test.startTest();
QueueOwnerSetter.setOwner(caseQueues);
Test.stopTest();

system.assertEquals(
[select Id from Group where DeveloperName = 'General_Queue'].Id,
[select Id from Group where DeveloperName = 'Migraine_Queue'].Id,
[select OwnerId from Case where Id = :saCase.Id].OwnerId
);
}
Expand Down
3 changes: 2 additions & 1 deletion sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@
"Special Authority [email protected]": "04tOG000000Fzb3YAC",
"Special Authority [email protected]": "04tOG000000FzcfYAC",
"Special Authority [email protected]": "04tOG000000FzeHYAS",
"Special Authority [email protected]": "04tOG000000FzftYAC"
"Special Authority [email protected]": "04tOG000000FzftYAC",
"Special Authority [email protected]": "04tOG000000GxtlYAC"
}
}

0 comments on commit 6fbfdf7

Please sign in to comment.