in FBSDKCoreKit/FBSDKCoreKitTests/Internal/Configuration/CoreKitConfiguratorTests.swift [1251:1323]
func testConfiguringModelManager() {
XCTAssertNil(
ModelManager.shared.featureChecker,
"ModelManager should not have a feature checker by default"
)
XCTAssertNil(
ModelManager.shared.graphRequestFactory,
"ModelManager should not have a request factory by default"
)
XCTAssertNil(
ModelManager.shared.fileManager,
"ModelManager should not have a file manager by default"
)
XCTAssertNil(
ModelManager.shared.store,
"ModelManager should not have a data store by default"
)
XCTAssertNil(
ModelManager.shared.settings,
"ModelManager should not have a settings by default"
)
XCTAssertNil(
ModelManager.shared.dataExtractor,
"ModelManager should not have a data extractor by default"
)
XCTAssertNil(
ModelManager.shared.gateKeeperManager,
"ModelManager should not have a gate keeper manager by default"
)
XCTAssertNil(
ModelManager.shared.suggestedEventsIndexer,
"ModelManager should not have a suggested events indexer by default"
)
XCTAssertNil(
ModelManager.shared.featureExtractor,
"ModelManager should not have a feature extractor by default"
)
configurator.performConfiguration()
XCTAssertTrue(
ModelManager.shared.featureChecker === components.featureChecker,
"ModelManager should be configured with the feature checker"
)
XCTAssertTrue(
ModelManager.shared.graphRequestFactory === components.graphRequestFactory,
"ModelManager should be configured with the request factory"
)
XCTAssertTrue(
ModelManager.shared.fileManager === components.fileManager,
"ModelManager should be configured with the file manager"
)
XCTAssertTrue(
ModelManager.shared.store === components.defaultDataStore,
"ModelManager should be configured with the default data store"
)
XCTAssertTrue(
ModelManager.shared.settings === components.settings,
"ModelManager should be configured with the settings"
)
XCTAssertTrue(
ModelManager.shared.dataExtractor === components.dataExtractor,
"ModelManager should be configured with the data extractor"
)
XCTAssertTrue(
ModelManager.shared.gateKeeperManager === components.gateKeeperManager,
"ModelManager should be configured with the gate keeper manager"
)
XCTAssertTrue(
ModelManager.shared.featureExtractor === components.featureExtractor,
"ModelManager should be configured with the feature extractor"
)
}