@@ -115,7 +115,11 @@ class OpenChatCreatingControllerTests: XCTestCase, ViewControllerCompatibleTest
115115 let controller = OpenChatCreatingController ( )
116116
117117 // Test loadAndPresent flow when terms not agreed
118- controller. loadAndPresent ( in: viewController, navigationDismissAnimating: false ) { result in
118+ controller. loadAndPresent (
119+ in: viewController,
120+ presentingAnimation: false ,
121+ navigationDismissAnimating: false
122+ ) { result in
119123 switch result {
120124 case . success( let resultVC) :
121125 XCTAssertNotNil ( viewController. presentedViewController)
@@ -151,7 +155,11 @@ class OpenChatCreatingControllerTests: XCTestCase, ViewControllerCompatibleTest
151155 let viewController = setupViewController ( )
152156
153157 let controller = OpenChatCreatingController ( )
154- controller. loadAndPresent ( in: viewController, navigationDismissAnimating: false ) { result in
158+ controller. loadAndPresent (
159+ in: viewController,
160+ presentingAnimation: false ,
161+ navigationDismissAnimating: false
162+ ) { result in
155163 expect. fulfill ( )
156164 switch result {
157165 case . success:
@@ -178,7 +186,11 @@ class OpenChatCreatingControllerTests: XCTestCase, ViewControllerCompatibleTest
178186 let mockDelegate = MockOpenChatCreatingControllerDelegate ( )
179187 controller. delegate = mockDelegate
180188
181- controller. presentCreatingViewController ( in: viewController, navigationDismissAnimating: false ) { result in
189+ controller. presentCreatingViewController (
190+ in: viewController,
191+ presentingAnimation: false ,
192+ navigationDismissAnimating: false
193+ ) { result in
182194 switch result {
183195 case . success( let navigationVC) :
184196 XCTAssertNotNil ( viewController. presentedViewController)
@@ -228,7 +240,11 @@ class OpenChatCreatingControllerTests: XCTestCase, ViewControllerCompatibleTest
228240 let mockDelegate = MockOpenChatCreatingControllerDelegate ( )
229241 controller. delegate = mockDelegate
230242
231- controller. presentCreatingViewController ( in: viewController, navigationDismissAnimating: false ) { result in
243+ controller. presentCreatingViewController (
244+ in: viewController,
245+ presentingAnimation: false ,
246+ navigationDismissAnimating: false
247+ ) { result in
232248 switch result {
233249 case . success( let navigationVC) :
234250 guard let navigation = navigationVC as? UINavigationController ,
@@ -280,7 +296,11 @@ class OpenChatCreatingControllerTests: XCTestCase, ViewControllerCompatibleTest
280296 let mockDelegate = MockOpenChatCreatingControllerDelegate ( )
281297 controller. delegate = mockDelegate
282298
283- controller. presentCreatingViewController ( in: viewController, navigationDismissAnimating: false ) { result in
299+ controller. presentCreatingViewController (
300+ in: viewController,
301+ presentingAnimation: false ,
302+ navigationDismissAnimating: false
303+ ) { result in
284304 switch result {
285305 case . success( let navigationVC) :
286306 guard let navigation = navigationVC as? UINavigationController ,
@@ -333,7 +353,11 @@ class OpenChatCreatingControllerTests: XCTestCase, ViewControllerCompatibleTest
333353 let mockDelegate = MockOpenChatCreatingControllerDelegate ( )
334354 controller. delegate = mockDelegate
335355
336- controller. presentCreatingViewController ( in: viewController, navigationDismissAnimating: false ) { result in
356+ controller. presentCreatingViewController (
357+ in: viewController,
358+ presentingAnimation: false ,
359+ navigationDismissAnimating: false
360+ ) { result in
337361 switch result {
338362 case . success( let navigationVC) :
339363 guard let navigation = navigationVC as? UINavigationController ,
@@ -395,7 +419,11 @@ class OpenChatCreatingControllerTests: XCTestCase, ViewControllerCompatibleTest
395419 controller. delegate = mockDelegate
396420
397421 // Start the load and present operation
398- controller. loadAndPresent ( in: viewController, navigationDismissAnimating: false ) { result in
422+ controller. loadAndPresent (
423+ in: viewController,
424+ presentingAnimation: false ,
425+ navigationDismissAnimating: false
426+ ) { result in
399427 // This should not be called when delegate prevents the alert
400428 XCTFail ( " Handler should not be called when delegate prevents alert " )
401429 }
@@ -425,7 +453,11 @@ class OpenChatCreatingControllerTests: XCTestCase, ViewControllerCompatibleTest
425453 let viewController = setupViewController ( )
426454 let controller = OpenChatCreatingController ( )
427455
428- controller. loadAndPresent ( in: viewController, navigationDismissAnimating: false ) { result in
456+ controller. loadAndPresent (
457+ in: viewController,
458+ presentingAnimation: false ,
459+ navigationDismissAnimating: false
460+ ) { result in
429461 expect. fulfill ( )
430462 switch result {
431463 case . success:
@@ -447,7 +479,11 @@ class OpenChatCreatingControllerTests: XCTestCase, ViewControllerCompatibleTest
447479 let mockDelegate = MockOpenChatCreatingControllerDelegate ( )
448480 controller. delegate = mockDelegate
449481
450- controller. presentCreatingViewController ( in: viewController, navigationDismissAnimating: false ) { result in
482+ controller. presentCreatingViewController (
483+ in: viewController,
484+ presentingAnimation: false ,
485+ navigationDismissAnimating: false
486+ ) { result in
451487 expect. fulfill ( )
452488 switch result {
453489 case . success:
0 commit comments