summaryrefslogtreecommitdiff
path: root/platform/ios/test/MGLAccountManagerTests.m
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2019-06-10 15:08:00 +0200
committerFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2019-06-11 18:35:07 +0200
commitad1b448da5079e38db8b6bb8eb565677b0f6a225 (patch)
treed7ecc118aae9524cc417b241c660c2609d37900d /platform/ios/test/MGLAccountManagerTests.m
parent685a9e5e94627e9ffc914b2955533c6ceeb62644 (diff)
downloadqtlocation-mapboxgl-ad1b448da5079e38db8b6bb8eb565677b0f6a225.tar.gz
[ios] get sku token return value
Diffstat (limited to 'platform/ios/test/MGLAccountManagerTests.m')
-rw-r--r--platform/ios/test/MGLAccountManagerTests.m25
1 files changed, 25 insertions, 0 deletions
diff --git a/platform/ios/test/MGLAccountManagerTests.m b/platform/ios/test/MGLAccountManagerTests.m
new file mode 100644
index 0000000000..fd59de2fd5
--- /dev/null
+++ b/platform/ios/test/MGLAccountManagerTests.m
@@ -0,0 +1,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