2

Your last 2 debug statements return null because at this moment, your communityUser only has the values that you defined a few lines above. If you query that user right after insert with all these fields, then you should have all the info that you need: insert communityUser; communityUser = [SELECT Id, ContactId, Contact.AccountId, AccountId FROM User ...


2

You just need to create an instance of the inner class and it should cover the class that you have mentioned in the question. So the below test class should give you 100% code coverage @isTest public class ProdImedComAr_Test { @isTest public static void unitTest(){ ProdImedComAr.Respuesta req = new ProdImedComAr.Respuesta(); } } But ...


1

The community user should have access to Loan_Doc_Sort__c record to upload files on it. You have few options, Change the OWD of Loan_Doc_Sort__c to public read-only external Create a manual share record for Loan_Doc_Sort__c after insert and share it with the commnunity user. Ensure The community user is the one creating the Loan_Doc_Sort__c in the test ...


1

I believe the WHERE clause is not being fulfilled in the controller query: List<Unit__c> unitList = [select Id, Name, Owner_Account__c From Unit__c where (Owner_Account__c = :user.AccountId)]; How is Owner_Account__c set on the unit? When you insert them using: Unit__c u = TestData.getUnit(); Insert u; If it depends on the community user ...


1

https://github.com/trailheadapps/lwc-recipes/pull/31/files/08bef0c3da0b620b875ab35140b8cb4095168183#diff-5cb65947ae0b0e7b8586ff96e0f1201e - change history for jest test. https://github.com/trailheadapps/lwc-recipes/pull/31 - thread discussing jest tests. Looking at some closed issues, it seems they mention this particular line/issue. It says it's closed and ...


Only top voted, non community-wiki answers of a minimum length are eligible