May 2019
Intermediate to advanced
546 pages
12h 41m
English
First of all, we need to select our movie. This is basically a query that selects the movie that you created in the setup method. We select the movie based on its name. This is the only data that we need in our test scenario:
Movie__c theMovie = [SELECT Id FROM Movie__c WHERE Name = 'Independence day'];
Add this code to the test method you just created.
Read now
Unlock full access