summaryrefslogtreecommitdiff
path: root/platform/ios/test/MGLAccountManagerTests.m
blob: fd59de2fd585610a4cdd53d05cbfa43cab14adeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import <XCTest/XCTest.h>
#import <Mapbox/Mapbox.h>

@interface MBXAccounts: NSObject
@property (class, nonatomic, readonly) NSString *skuToken;
@end

@implementation MBXAccounts

+ (NSString *)skuToken {
    return @"foo";
}

@end

@interface MGLAccountManagerTests : XCTestCase
@end

@implementation MGLAccountManagerTests

- (void)testSKU {
    XCTAssertTrue([[MGLAccountManager valueForKeyPath:@"skuToken"] isEqualToString:@"foo"]);
}

@end