17
17
#pragma mark - Helpers
18
18
// /--------------------------------------
19
19
20
- @interface TheFlash : PFObject <PFSubclassing > {
20
+ @interface TheFlash : PFObject <PFSubclassingSkipAutomaticRegistration > {
21
21
NSString *flashName;
22
22
}
23
23
@@ -59,7 +59,7 @@ + (NSString *)parseClassName {
59
59
60
60
@end
61
61
62
- @interface ClassWithDirtyingConstructor : PFObject <PFSubclassing >
62
+ @interface ClassWithDirtyingConstructor : PFObject <PFSubclassingSkipAutomaticRegistration >
63
63
@end
64
64
65
65
@implementation ClassWithDirtyingConstructor
@@ -85,7 +85,7 @@ @interface UtilityClass : PFObject
85
85
@implementation UtilityClass
86
86
@end
87
87
88
- @interface DescendantOfUtility : UtilityClass <PFSubclassing >
88
+ @interface DescendantOfUtility : UtilityClass <PFSubclassingSkipAutomaticRegistration >
89
89
@end
90
90
91
91
@implementation DescendantOfUtility
@@ -104,17 +104,6 @@ @interface ObjectSubclassTests : PFUnitTestCase
104
104
105
105
@implementation ObjectSubclassTests
106
106
107
- // /--------------------------------------
108
- #pragma mark - XCTestCase
109
- // /--------------------------------------
110
-
111
- - (void )tearDown {
112
- [PFObject unregisterSubclass: [TheFlash class ]];
113
- [PFObject unregisterSubclass: [BarryAllen class ]];
114
-
115
- [super tearDown ];
116
- }
117
-
118
107
// /--------------------------------------
119
108
#pragma mark - Tests
120
109
// /--------------------------------------
@@ -158,16 +147,4 @@ - (void)testSubclassesCanInheritUtilityClassesWithoutParseClassName {
158
147
[DescendantOfUtility registerSubclass ];
159
148
}
160
149
161
- - (void )testSubclassRegistrationBeforeInitializingParse {
162
- [[Parse _currentManager ] clearEventuallyQueue ];
163
- [Parse _clearCurrentManager ];
164
-
165
- [TheFlash registerSubclass ];
166
-
167
- [Parse setApplicationId: @" a" clientKey: @" b" ];
168
-
169
- PFObject *theFlash = [PFObject objectWithClassName: @" Person" ];
170
- PFAssertIsKindOfClass (theFlash, [TheFlash class ]);
171
- }
172
-
173
150
@end
0 commit comments