view controller let presentingViewController = PresentingViewController() // Make a photo library view controller let photoLibrary = PhotoLibraryViewController(configuration: .iMessage) // 'Present' photo library presentingViewController.present(photoLibrary: photoLibrary) // Assert that photo library was added as a child view controller XCTAssertEqual(photoLibrary.parentViewController, presentingViewController) } @tamarshmallows