Add comment explaining testing method
This commit is contained in:
parent
45a09d7fc8
commit
33c0885b2e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue