mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 22:52:26 +00:00
Added modification recording tests, using new KeePassKit API
Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
Submodule KeePassKit updated: 1fa5c5d743...a1b1ef3cb9
@@ -36,8 +36,21 @@
|
||||
[super tearDown];
|
||||
}
|
||||
|
||||
- (void)testGroupModificationDate {
|
||||
- (void)testEnableDisableModificationRecording {
|
||||
XCTAssertTrue(self.group.updateTiming, @"updateTiming is enabled for newly created groups!");
|
||||
XCTAssertTrue(self.entry.updateTiming, @"updateTiming is enabled for newly created entries!");
|
||||
self.group.updateTiming = NO;
|
||||
self.entry.updateTiming = NO;
|
||||
XCTAssertFalse(self.group.updateTiming, @"updateTiming is disabled!");
|
||||
XCTAssertFalse(self.entry.updateTiming, @"updateTiming is disabled!");
|
||||
self.group.updateTiming = YES;
|
||||
self.entry.updateTiming = YES;
|
||||
XCTAssertTrue(self.group.updateTiming, @"updateTiming is enabled!");
|
||||
XCTAssertTrue(self.entry.updateTiming, @"updateTiming is enabled!");
|
||||
}
|
||||
|
||||
- (void)testGroupModificationDate {
|
||||
XCTFail(@"Missing Test");
|
||||
}
|
||||
|
||||
- (void)testEntryModifiationDate {
|
||||
|
||||
@@ -9,14 +9,7 @@
|
||||
|
||||
#import <XCTest/XCTest.h>
|
||||
|
||||
#import "KPKAttribute.h"
|
||||
#import "KPKBinary.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKIcon.h"
|
||||
#import "KPKXmlElements.h"
|
||||
|
||||
#import "NSData+Random.h"
|
||||
#import "KeePassKit.h"
|
||||
|
||||
@interface KPKTestNSCoding : XCTestCase
|
||||
|
||||
|
||||
@@ -7,12 +7,7 @@
|
||||
//
|
||||
|
||||
#import <XCTest/XCTest.h>
|
||||
#import "KPKIconTypes.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKAttribute.h"
|
||||
#import "KPKBinary.h"
|
||||
#import "KPKXmlElements.h"
|
||||
#import "KeePassKit.h"
|
||||
|
||||
@interface KPKTestNSCopying : XCTestCase
|
||||
|
||||
|
||||
Reference in New Issue
Block a user