mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Objective-C
		
	
//
 | 
						|
//  PushManagerTest.m
 | 
						|
//  Signal
 | 
						|
//
 | 
						|
//  Created by Frederic Jacobs on 12/09/14.
 | 
						|
//  Copyright (c) 2014 Open Whisper Systems. All rights reserved.
 | 
						|
//
 | 
						|
 | 
						|
#import <XCTest/XCTest.h>
 | 
						|
 | 
						|
@interface PushManagerTest : XCTestCase
 | 
						|
 | 
						|
@end
 | 
						|
 | 
						|
@implementation PushManagerTest
 | 
						|
 | 
						|
- (void)setUp {
 | 
						|
    [super setUp];
 | 
						|
    // Put setup code here. This method is called before the invocation of each test method in the class.
 | 
						|
}
 | 
						|
 | 
						|
- (void)tearDown {
 | 
						|
    // Put teardown code here. This method is called after the invocation of each test method in the class.
 | 
						|
    [super tearDown];
 | 
						|
}
 | 
						|
 | 
						|
/**
 | 
						|
 *  This test verifies that the enum containing the notifications types doesn't change for iOS7 support.
 | 
						|
 */
 | 
						|
 | 
						|
- (void)testNotificationTypesForiOS7 {
 | 
						|
    XCTAssert(UIRemoteNotificationTypeAlert == UIUserNotificationTypeAlert, @"iOS 7 <-> 8 compatibility");
 | 
						|
    XCTAssert(UIRemoteNotificationTypeSound == UIUserNotificationTypeSound, @"iOS 7 <-> 8 compatibility");
 | 
						|
    XCTAssert(UIRemoteNotificationTypeBadge == UIUserNotificationTypeBadge, @"iOS 7 <-> 8 compatibility");
 | 
						|
}
 | 
						|
 | 
						|
@end
 |