File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ - (instancetype)initWithApp:(FIRApp *)app
43
43
components : (NSDictionary <NSString *, FIRComponentCreationBlock> *)components {
44
44
self = [self initWithApp: app registrants: [[NSMutableSet alloc ] init ]];
45
45
if (self) {
46
- components = [components mutableCopy ];
46
+ self. components = [components mutableCopy ];
47
47
}
48
48
return self;
49
49
}
Original file line number Diff line number Diff line change @@ -39,6 +39,27 @@ @interface FIRDatabaseComponent (Internal)
39
39
- (instancetype )initWithApp : (FIRApp *)app ;
40
40
@end
41
41
42
+ @interface FIRComponentContainer (TestInternal)
43
+ @property (nonatomic , strong ) NSMutableDictionary <NSString *, FIRComponentCreationBlock> *components;
44
+ @end
45
+
46
+ @interface FIRComponentContainer (TestInternalImplementations)
47
+ - (instancetype )initWithApp : (FIRApp *)app
48
+ components : (NSDictionary <NSString *, FIRComponentCreationBlock> *)components ;
49
+ @end
50
+
51
+ @implementation FIRComponentContainer (TestInternalImplementations)
52
+
53
+ - (instancetype )initWithApp : (FIRApp *)app
54
+ components : (NSDictionary <NSString *, FIRComponentCreationBlock> *)components {
55
+ self = [self initWithApp: app registrants: [[NSMutableSet alloc ] init ]];
56
+ if (self) {
57
+ self.components = [components mutableCopy ];
58
+ }
59
+ return self;
60
+ }
61
+ @end
62
+
42
63
@implementation FIRFakeApp
43
64
44
65
- (instancetype )initWithName : (NSString *)name URL : (NSString *)url {
You can’t perform that action at this time.
0 commit comments