File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
InstabugSample/ios/InstabugSampleTests Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -518,5 +518,21 @@ - (void) testgivenBoolean$setViewHierarchyEnabled_whenQuery_thenShouldCallNative
518
518
XCTAssertTrue (IBGBugReporting.shouldCaptureViewHierarchy );
519
519
}
520
520
521
+ /*
522
+ +------------------------------------------------------------------------+
523
+ | Crash Reporting Module |
524
+ +------------------------------------------------------------------------+
525
+ */
526
+
527
+ - (void )testSetCrashReportingEnabled {
528
+ id mock = OCMClassMock ([Instabug class ]);
529
+
530
+ [self .instabugBridge setCrashReportingEnabled: YES ];
531
+ XCTAssertTrue (IBGCrashReporting.enabled );
532
+
533
+ [self .instabugBridge setCrashReportingEnabled: NO ];
534
+ XCTAssertFalse (IBGCrashReporting.enabled );
535
+ }
536
+
521
537
522
538
@end
Original file line number Diff line number Diff line change 119
119
120
120
- (void )setViewHirearchyEnabled : (BOOL )viewHirearchyEnabled ;
121
121
122
+ /*
123
+ +------------------------------------------------------------------------+
124
+ | Crash Reporting Module |
125
+ +------------------------------------------------------------------------+
126
+ */
127
+
128
+ - (void )setCrashReportingEnabled : (BOOL )enabledCrashReporter ;
129
+
122
130
@end
You can’t perform that action at this time.
0 commit comments