IOSAD-103 key reset is supposed to send a mail IOSAD-103
authorDirk Zimmermann <dirk@pep-project.org>
Wed, 31 Oct 2018 16:38:25 +0100
branchIOSAD-103
changeset 742511c1daa08e9
parent 741 e70ba74b1de2
child 743 ca6ca5d80a3c
IOSAD-103 key reset is supposed to send a mail
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Wed Oct 31 09:16:57 2018 +0100
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Wed Oct 31 16:38:25 2018 +0100
     1.3 @@ -1203,6 +1203,8 @@
     1.4  {
     1.5      PEPSession *session = [PEPSession new];
     1.6  
     1.7 +    XCTAssertEqual(self.sendMessageDelegate.messages.count, 0);
     1.8 +
     1.9      PEPIdentity *identMe = [[PEPIdentity alloc]
    1.10                              initWithAddress:@"me-myself-and-i@pep-project.org"
    1.11                              userID:@"me-myself-and-i"
    1.12 @@ -1222,6 +1224,8 @@
    1.13      XCTAssertTrue([session updateIdentity:identMe error:&error]);
    1.14      XCTAssertNotNil(identMe.fingerPrint);
    1.15      XCTAssertNotEqual(identMe.fingerPrint, fpr1);
    1.16 +
    1.17 +    XCTAssertEqual(self.sendMessageDelegate.messages.count, 1);
    1.18  }
    1.19  
    1.20  #pragma mark - Helpers