Apex Unit Test doesn’t obey CRUD Security
I’m trying to test user profile which don’t have create access to create certain custom objects, even though the profile is setup such that they have read only or NO access at all, but the unit test code is creating the record without any issues. I’m doing the following ex: System.runas(profile)
.