PDII Web TestEngine demo

Exit VCEDump PDII Salesforce Certified Platform Developer II (Plat-Dev-301)
Question 63 of 67
0% complete
Q63 Single choice

A developer created the following test method:

@isTest(SeeAllData= true)

public static void testDeleteTrigger(){

Account testAccount = new Account(name = 'Test1');

insert testAccount;

List<Account> testAccounts = [SELECT Id, Name from Account WHERE Name like 'Test%'];

System.assert(testAccounts.size() > 0);

delete testAccounts;

testAccounts = [SELECT Id, Name from Account WHERE Name like 'Test%'];

System.assert(testAccounts.size() == 0);

}

The developer org has five accounts where the name starts with Test". The developer executes this test in the Developer Console.
After the test code runs, which statement is true?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in