I am creating a test class that will test my controller class which uses almost 5 to 8 objects that has many DML statements like insert and delete, however I am feeling a little bit worried about not getting the result like in my controller class. As a turnaround I used the SeeAllData=True annotation in order not to make sample data for each object and to cover most of my codes.
Question: When using the SeeAllData=True annotation, will it also do the DML statements in the actual record and reflect in the database?
Sample:
@isTest SeeAllData=True
public with sharing class ControllerTest
{
static testmethod void sampleTest()
{
//Codes that will test the Controller using the data from the annotation
}
}