Created
March 1, 2016 22:38
-
-
Save dudunato/44f99adc8e6a5e873f1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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