mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 15:12:21 +00:00
Fixed tests. Layout for filterBar now uses only two constants and animates a constant instead of adding and removing a bunch of constraints all the time.
This commit is contained in:
@@ -23,11 +23,8 @@
|
||||
|
||||
- (void)testSetPassword {
|
||||
STAssertNil(_database.compositeKey, @"New database should not have a composite key");
|
||||
STAssertFalse(_database.compositeKey.hasPasswordOrKeyFile, @"Database without password is not secure");
|
||||
[_database.compositeKey setPassword:@"password" andKeyfile:nil];
|
||||
STAssertTrue(_database.compositeKey.hasPasswordOrKeyFile, @"Database with password is secured");
|
||||
[_database.compositeKey setPassword:nil andKeyfile:nil];
|
||||
STAssertFalse(_database.compositeKey.hasPasswordOrKeyFile, @"Database with removed password is not secure anymore");
|
||||
STAssertTrue([_database changePassword:@"password" keyFileURL:nil], @"Setting the Password should succeed");
|
||||
STAssertFalse([_database changePassword:nil keyFileURL:nil], @"resetting the password and key to nil should not work");
|
||||
}
|
||||
|
||||
- (void)testSetKeyfile {/*
|
||||
|
||||
Reference in New Issue
Block a user