From 4cfb84d3feeeaab0547f91943b98e8a566942819 Mon Sep 17 00:00:00 2001 From: Kyle Capehart Date: Thu, 26 Oct 2023 12:08:15 -0400 Subject: [PATCH] fix deployment errors (#17) * fix deployment errors * delete profiles --- .../default/classes/AccountTriggerHelper.cls | 2 +- .../default/classes/AccountTriggerTest.cls | 7 ++++ .../classes/AccountTriggerTest.cls-meta.xml | 5 +++ .../default/profiles/Admin.profile-meta.xml | 34 +++++++++++++------ manifest/package.xml | 4 +++ 5 files changed, 40 insertions(+), 12 deletions(-) create mode 100644 force-app/main/default/classes/AccountTriggerTest.cls create mode 100644 force-app/main/default/classes/AccountTriggerTest.cls-meta.xml diff --git a/force-app/main/default/classes/AccountTriggerHelper.cls b/force-app/main/default/classes/AccountTriggerHelper.cls index a9d4658..ff45243 100644 --- a/force-app/main/default/classes/AccountTriggerHelper.cls +++ b/force-app/main/default/classes/AccountTriggerHelper.cls @@ -1,5 +1,5 @@ public with sharing class AccountTriggerHelper { public static Boolean validatePhoneNumber(Account a) { - return Pattern.matches('[0-9(),./\\-]+', a.Phone); // test + return Pattern.matches('[0-9(),./\\-]+', a.Phone); //test } } \ No newline at end of file diff --git a/force-app/main/default/classes/AccountTriggerTest.cls b/force-app/main/default/classes/AccountTriggerTest.cls new file mode 100644 index 0000000..cd4f963 --- /dev/null +++ b/force-app/main/default/classes/AccountTriggerTest.cls @@ -0,0 +1,7 @@ +@isTest(SeeAllData=false) +public with sharing class AccountTriggerTest { + @isTest static void testAccount() { + Account a = new Account(Name = 'Test', Phone = '1234567890'); + AccountTriggerHelper.validatePhoneNumber(a); + } +} \ No newline at end of file diff --git a/force-app/main/default/classes/AccountTriggerTest.cls-meta.xml b/force-app/main/default/classes/AccountTriggerTest.cls-meta.xml new file mode 100644 index 0000000..7a51829 --- /dev/null +++ b/force-app/main/default/classes/AccountTriggerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 58.0 + Active + diff --git a/force-app/main/default/profiles/Admin.profile-meta.xml b/force-app/main/default/profiles/Admin.profile-meta.xml index 5740600..a6a66e9 100644 --- a/force-app/main/default/profiles/Admin.profile-meta.xml +++ b/force-app/main/default/profiles/Admin.profile-meta.xml @@ -4,6 +4,10 @@ AccountTriggerHelper true + + AccountTriggerTest + true + false Salesforce @@ -152,15 +156,15 @@ true - CreateReportFolders + CreatePackaging true - CreateTopics + CreateReportFolders true - CreateWorkBadgeDefinition + CreateTopics true @@ -274,10 +278,6 @@ true ExportReport - - true - FieldServiceAccess - true GiveRecognitionBadge @@ -550,10 +550,18 @@ true Packaging2Delete + + true + Packaging2PromoteVersion + true PrivacyDataAccess + + true + PublishPackaging + true RemoveDirectMessageMembers @@ -578,10 +586,6 @@ true SendCustomNotifications - - true - SendExternalEmailAvailable - true SendSitRequests @@ -650,6 +654,14 @@ true UseOmnichannelInventoryAPIs + + true + UseReturnOrder + + + true + UseReturnOrderAPIs + true UseTeamReassignWizards diff --git a/manifest/package.xml b/manifest/package.xml index b74a671..a9ebc30 100644 --- a/manifest/package.xml +++ b/manifest/package.xml @@ -32,5 +32,9 @@ * StaticResource + + * + Profile + 58.0 \ No newline at end of file