in FBSDKCoreKit/FBSDKCoreKitTests/Internal/Configuration/CoreKitConfiguratorTests.swift [991:1075]
func testConfiguringAppLinkUtility() {
XCTAssertNil(
AppLinkUtility.graphRequestFactory,
"AppLinkUtility should not have a graph request factory by default"
)
XCTAssertNil(
AppLinkUtility.infoDictionaryProvider,
"AppLinkUtility should not have an info dictionary provider by default"
)
XCTAssertNil(
AppLinkUtility.settings,
"AppLinkUtility should not have settings by default"
)
XCTAssertNil(
AppLinkUtility.appEventsConfigurationProvider,
"AppLinkUtility should not have an app events configuration manager by default"
)
XCTAssertNil(
AppLinkUtility.advertiserIDProvider,
"AppLinkUtility should not have an advertiser ID provider by default"
)
XCTAssertNil(
AppLinkUtility.appEventsDropDeterminer,
"AppLinkUtility should not have an app events drop determiner by default"
)
XCTAssertNil(
AppLinkUtility.appEventParametersExtractor,
"AppLinkUtility should not have an app events parameter extractor by default"
)
XCTAssertNil(
AppLinkUtility.appLinkURLFactory,
"AppLinkUtility should not have an app link URL factory by default"
)
XCTAssertNil(
AppLinkUtility.userIDProvider,
"AppLinkUtility should not have a user ID provider by default"
)
XCTAssertNil(
AppLinkUtility.userDataStore,
"AppLinkUtility should not have a user data store by default"
)
configurator.performConfiguration()
XCTAssertTrue(
AppLinkUtility.graphRequestFactory === components.graphRequestFactory,
"AppLinkUtility should be configured with the graph request factory"
)
XCTAssertTrue(
AppLinkUtility.infoDictionaryProvider === components.infoDictionaryProvider,
"AppLinkUtility should be configured with the info dictionary provider"
)
XCTAssertTrue(
AppLinkUtility.settings === components.settings,
"AppLinkUtility should be configured with the settings"
)
XCTAssertTrue(
AppLinkUtility.appEventsConfigurationProvider === components.appEventsConfigurationProvider,
"AppLinkUtility should be configured with the app events configuration manager"
)
XCTAssertTrue(
AppLinkUtility.advertiserIDProvider === components.advertiserIDProvider,
"AppLinkUtility should be configured with the advertiser ID provider"
)
XCTAssertTrue(
AppLinkUtility.appEventsDropDeterminer === components.appEventsDropDeterminer,
"AppLinkUtility should be configured with the app events drop determiner"
)
XCTAssertTrue(
AppLinkUtility.appEventParametersExtractor === components.appEventParametersExtractor,
"AppLinkUtility should be configured with the app events parameter extractor"
)
XCTAssertTrue(
AppLinkUtility.appLinkURLFactory === components.appLinkURLFactory,
"AppLinkUtility should be configured with the app link URL factory"
)
XCTAssertTrue(
AppLinkUtility.userIDProvider === components.userIDProvider,
"AppLinkUtility should be configured with the user ID provider"
)
XCTAssertTrue(
AppLinkUtility.userDataStore === components.userDataStore,
"AppLinkUtility should be configured with the user data store"
)
}