title: UnitTests and iOS : viewDidLoad triggered twice
body: <p>I am testing the viewDidLoad event on one of my UIViewController.</p>
  
  <pre><code>- (void)testMyView
  {
      UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
      MyViewController *vc = [storyboard instantiateViewControllerWithIdentifier:MYID];
      [vc viewDidLoad];
  
      STAssertNotNil(vc, @"MyViewController should not be nil");
  }
  </code></pre>
  
  <p>If I remove the line <code>[vc viewDidLoad];</code>, the <code>viewDidLoad</code> is never triggered.</p>
  
  <p>If I let <code>[vc viewDidLoad];</code> in place, the <code>viewDidLoad</code> is triggered twice.</p>
  
  <p>I understand that views are lazy loaded, but how can I avoid that behavior?</p>
  
  <p>Is there any best practice regarding View testing?</p>