in FBSDKCoreKit/FBSDKCoreKitTests/Internal/AppEvents/AppEventsTests.swift [912:929]
func testRequestForCustomAudienceThirdPartyIDWithLimitedEventAndDataUsage() {
settings.isEventDataUsageLimited = true
settings.advertisingTrackingStatus = .allowed
XCTAssertNil(
appEvents.requestForCustomAudienceThirdPartyID(
accessToken: SampleAccessTokens.validToken
),
"""
Should not create a request for third party Any if event and data usage is \
limited even if there is a current access token
"""
)
XCTAssertNil(
appEvents.requestForCustomAudienceThirdPartyID(accessToken: nil),
"Should not create a request for third party Any if event and data usage is limited"
)
}