Skip to content

Instantly share code, notes, and snippets.

@dudunato
Created March 1, 2016 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dudunato/44f99adc8e6a5e873f1a to your computer and use it in GitHub Desktop.
Save dudunato/44f99adc8e6a5e873f1a to your computer and use it in GitHub Desktop.
@IsTest
private class ContactPhotoUploadControllerTest {
@IsTest
private static void saveFileTest () {
ContactPhotoUploadController controller = new ContactPhotoUploadController(new ApexPages.StandardController());
PageReference pr = controller.saveFile();
System.assertEquals(null, pr);
}
@IsTest
private static void toggleTest() {
ContactPhotoUploadController controller = new ContactPhotoUploadController(new ApexPages.StandardController());
controller.displaying = true;
controller.toggle();
System.assertEquals(controller.displaying, false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment