I am writing a test class for cases. I want to test certain things of course and want to rely on the actual behaviour. Therefore I would like assignment rules to run when inserting test cases. They are not however. I found this article but it doesn't seem to work for me.
Any ideas?
Thanks / Niklas
Attribution to: nickwick76
Possible Suggestion/Solution #1
try adding the seeAllData annotation to your test method
@isTest(seeAllData=true)
static void test_mockIfAtAllPossible(){
}
Attribution to: ebt
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/298