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 @@ -512,5 +512,21 @@ - (void) testgivenBoolean$setViewHierarchyEnabled_whenQuery_thenShouldCallNative
512
512
XCTAssertFalse (IBGBugReporting.shouldCaptureViewHierarchy );
513
513
}
514
514
515
+ /*
516
+ +------------------------------------------------------------------------+
517
+ | Crash Reporting Module |
518
+ +------------------------------------------------------------------------+
519
+ */
520
+
521
+ - (void )testSetCrashReportingEnabled {
522
+ id mock = OCMClassMock ([Instabug class ]);
523
+
524
+ [self .instabugBridge setCrashReportingEnabled: YES ];
525
+ XCTAssertTrue (IBGCrashReporting.enabled );
526
+
527
+ [self .instabugBridge setCrashReportingEnabled: NO ];
528
+ XCTAssertFalse (IBGCrashReporting.enabled );
529
+ }
530
+
515
531
516
532
@end
Original file line number Diff line number Diff line change 118
118
119
119
- (void )setViewHierarchyEnabled : (BOOL )viewHierarchyEnabled ;
120
120
121
+ /*
122
+ +------------------------------------------------------------------------+
123
+ | Crash Reporting Module |
124
+ +------------------------------------------------------------------------+
125
+ */
126
+
127
+ - (void )setCrashReportingEnabled : (BOOL )enabledCrashReporter ;
128
+
121
129
@end
You can’t perform that action at this time.
0 commit comments