@@ -339,6 +339,8 @@ - (void)testAnnouncesLayoutChangeWithNilIfLastFocusIsRemoved {
339339 /* rendering_api=*/ flutter::IOSRenderingAPI::kSoftware ,
340340 /* task_runners=*/ runners);
341341 id mockFlutterViewController = OCMClassMock ([FlutterViewController class ]);
342+ id mockFlutterView = OCMClassMock ([FlutterView class ]);
343+ OCMStub ([mockFlutterViewController view ]).andReturn (mockFlutterView);
342344
343345 NSMutableArray <NSDictionary <NSString *, id >*>* accessibility_notifications =
344346 [[[NSMutableArray alloc ] init ] autorelease ];
@@ -402,6 +404,8 @@ - (void)testAnnouncesLayoutChangeWithLastFocused {
402404 /* rendering_api=*/ flutter::IOSRenderingAPI::kSoftware ,
403405 /* task_runners=*/ runners);
404406 id mockFlutterViewController = OCMClassMock ([FlutterViewController class ]);
407+ id mockFlutterView = OCMClassMock ([FlutterView class ]);
408+ OCMStub ([mockFlutterViewController view ]).andReturn (mockFlutterView);
405409
406410 NSMutableArray <NSDictionary <NSString *, id >*>* accessibility_notifications =
407411 [[[NSMutableArray alloc ] init ] autorelease ];
@@ -472,6 +476,8 @@ - (void)testAnnouncesScrollChangeWithLastFocused {
472476 /* rendering_api=*/ flutter::IOSRenderingAPI::kSoftware ,
473477 /* task_runners=*/ runners);
474478 id mockFlutterViewController = OCMClassMock ([FlutterViewController class ]);
479+ id mockFlutterView = OCMClassMock ([FlutterView class ]);
480+ OCMStub ([mockFlutterViewController view ]).andReturn (mockFlutterView);
475481
476482 NSMutableArray <NSDictionary <NSString *, id >*>* accessibility_notifications =
477483 [[[NSMutableArray alloc ] init ] autorelease ];
0 commit comments