in FBSDKCoreKit/FBSDKCoreKitTests/Internal/AppEvents/AppEventsTests.swift [894:910]
func testRequestForCustomAudienceThirdPartyIDWithTrackingDisallowed() {
settings.advertisingTrackingStatus = .disallowed
XCTAssertNil(
appEvents.requestForCustomAudienceThirdPartyID(
accessToken: SampleAccessTokens.validToken
),
"""
Should not create a request for third party Any if tracking is disallowed \
even if there is a current access token
"""
)
XCTAssertNil(
appEvents.requestForCustomAudienceThirdPartyID(accessToken: nil),
"Should not create a request for third party Any if tracking is disallowed"
)
}