Add comment explaining testing method

This commit is contained in:
Brian Dorfman 2016-10-25 16:07:23 -07:00
parent 45a09d7fc8
commit 33c0885b2e
1 changed files with 8 additions and 0 deletions

View File

@ -546,6 +546,14 @@ static NSInteger STPPaymentCardRememberMeSection = 3;
#pragma mark - UITableView
#if DEBUG
/**
This method/property is used by unit tests to force the view into having remember me
being enabled for snapshot testing purposes.
It also bypasses the checks for seeing if the remember me switch
can be show below in `reloadRememberMeCellAnimated`
*/
- (void)setForceEnableRememberMeForTesting:(BOOL)forceEnableRememberMeForTesting {
// force view load
__unused UIView *view = self.view;