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
512512 XCTAssertFalse (IBGBugReporting.shouldCaptureViewHierarchy );
513513}
514514
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+
515531
516532@end
Original file line number Diff line number Diff line change 118118
119119- (void )setViewHierarchyEnabled : (BOOL )viewHierarchyEnabled ;
120120
121+ /*
122+ +------------------------------------------------------------------------+
123+ | Crash Reporting Module |
124+ +------------------------------------------------------------------------+
125+ */
126+
127+ - (void )setCrashReportingEnabled : (BOOL )enabledCrashReporter ;
128+
121129@end
You can’t perform that action at this time.
0 commit comments