I have a problem with Field Service Lightning managed package in my test class.
I have done the next things:
Create a Lightning Component and a Apex Controller to change the service appointment's status from Status 'A' to Status B.
Enabled the status transaction inside the field service settings.
In lightning the component is working fine. But I am getting this error when I run my test class:
Cannot change status from A to B
If I use (seeAllData=true) the test pass.
What I think that is my error:
I think that I have to create something like a configuration record in my test class to enable the status transaction.
Why do I get this error? How can I fix it?