diff options
Diffstat (limited to 'platform/darwin/test/MGLAttributionInfoTests.m')
-rw-r--r-- | platform/darwin/test/MGLAttributionInfoTests.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/platform/darwin/test/MGLAttributionInfoTests.m b/platform/darwin/test/MGLAttributionInfoTests.m index 29d5024bd3..48779f3407 100644 --- a/platform/darwin/test/MGLAttributionInfoTests.m +++ b/platform/darwin/test/MGLAttributionInfoTests.m @@ -9,6 +9,14 @@ @implementation MGLAttributionInfoTests +- (void)setUp { + [MGLAccountManager setAccessToken:@"pk.feedcafedeadbeefbadebede"]; +} + +- (void)tearDown { + [MGLAccountManager setAccessToken:nil]; +} + - (void)testParsing { static NSString * const htmlStrings[] = { @"<a href=\"https://www.mapbox.com/about/maps/\" target=\"_blank\">© Mapbox</a> " @@ -50,7 +58,7 @@ XCTAssertEqualObjects([infos[3] feedbackURLAtCenterCoordinate:mapbox zoomLevel:14], [NSURL URLWithString:@"https://apps.mapbox.com/feedback/?referrer=com.mapbox.Mapbox#/77.63680/12.98108/14.00/0.0/0"]); XCTAssertEqualObjects([infos[3] feedbackURLForStyleURL:styleURL atCenterCoordinate:mapbox zoomLevel:3.14159 direction:90.9 pitch:12.5], - [NSURL URLWithString:@"https://apps.mapbox.com/feedback/?referrer=com.mapbox.Mapbox&owner=mapbox&id=satellite-streets-v99&access_token&map_sdk_version=1.0.0#/77.63680/12.98108/3.14/90.9/13"]); + [NSURL URLWithString:@"https://apps.mapbox.com/feedback/?referrer=com.mapbox.Mapbox&owner=mapbox&id=satellite-streets-v99&access_token=pk.feedcafedeadbeefbadebede&map_sdk_version=1.0.0#/77.63680/12.98108/3.14/90.9/13"]); } - (void)testStyle { |