0

I need to create record of WebStoreNetwork in my test class.

SELECT WebStoreId
          FROM WebStoreNetwork
          WHERE NetworkId = :communityId
          WITH SECURITY_ENFORCED

This is the query which is not getting covered in my test class. I am getting value in communityId variable in test class. Facing error "List has no rows to assignment". Does anyone have any idea? Thanks.

James Z
  • 12,209
  • 10
  • 24
  • 44
user106835
  • 11
  • 2
  • https://meta.stackoverflow.com/questions/326569/under-what-circumstances-may-i-add-urgent-or-other-similar-phrases-to-my-quest – James Z Nov 04 '22 at 15:43

1 Answers1

0

I suggest you post to Salesforce StackExchange.

But a direct answer is that as of Dec-2022 is not possible.

As of the next release, it should be: see Spring'23 release notes.