mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 00:02:28 +00:00
updated to new prefixed KeePassKit API. Fixed tests
This commit is contained in:
@@ -28,8 +28,8 @@
|
||||
XCTAssertTrue(document.encrypted, @"Loaded but unencrypted should be not decrypted");
|
||||
XCTAssertTrue([document unlockWithPassword:@"1234" keyFileURL:nil error:&error], @"Should decrypt with password");
|
||||
XCTAssertNil(error, @"No Error should occur on unlocking with correct password");
|
||||
XCTAssertTrue((document.tree.minimumType = KPKDatabaseFormatKdb), @"Minimal Version should not increase with KDB File loaded");
|
||||
//STAssertTrue([document.fileType isEqualToString:[MPDocument fileTypeForVersion:KPKLegacyVersion]], @"File type needs to match opened file");
|
||||
KPKFileVersion kdb = { KPKDatabaseFormatKdb, kKPKKdbFileVersion };
|
||||
XCTAssertEqual(NSOrderedSame, KPKFileVersionCompare(kdb, document.tree.minimumVersion), @"Minimal Version should not increase with KDB File loaded");
|
||||
}
|
||||
|
||||
- (void)testVersion1WrongPassword {
|
||||
|
||||
Reference in New Issue
Block a user