Find your content:

Search form

You are here

Assignment rules don't run in test class


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

static void test_mockIfAtAllPossible(){

Attribution to: ebt
This content is remixed from stackoverflow or stackexchange. Please visit

My Block Status

My Block Content