interface orientation in UIViewController Test

62 views
Skip to first unread message

peter_lustig

unread,
Jan 13, 2012, 2:44:27 AM1/13/12
to GHUnit
Hey guys,

I am facing an issue with Testing my UIViewControllers. The generated
image always is in Portrait orientation. My Application as well as the
test target does not support Portrait at all and the initial
orientation is set to Landscape left. The UIViewController itself only
returns YES in its shouldAutorotate for Landscape orientations. What
am I missing?

My Test looks like this:

@interface MyVCTest : GHViewTestCase { }
@end


@implementation MyVCTest

- (void)testMyVC {
UIStoryboard *myStoryboard = [UIStoryboard
storyboardWithName:@"myStoryboard" bundle:[NSBundle mainBundle]];

myVC *viewController = [myStoryboard
instantiateViewControllerWithIdentifier:@"myVCIdentifier"];
GHVerifyView(viewController.view);
}

Thanks.
Reply all
Reply to author
Forward
0 new messages