|
13 | 13 | #import "MPKitContainer.h" |
14 | 14 | #import "MPPersistenceController.h" |
15 | 15 | #import "MPStateMachine.h" |
16 | | -#import "MPIUserDefaults.h" |
17 | 16 |
|
18 | 17 | typedef NS_ENUM(NSUInteger, MPIdentityRequestType) { |
19 | 18 | MPIdentityRequestIdentify = 0, |
@@ -59,7 +58,7 @@ - (instancetype)initWithIdentities:(NSDictionary *)identities; |
59 | 58 | @interface MParticle () |
60 | 59 |
|
61 | 60 | @property (nonatomic, strong) MPKitContainer_PRIVATE *kitContainer_PRIVATE; |
62 | | -@property (nonatomic, strong, readonly) MPPersistenceController *persistenceController; |
| 61 | +@property (nonatomic, strong, readonly) MPPersistenceController_PRIVATE *persistenceController; |
63 | 62 |
|
64 | 63 | @end |
65 | 64 |
|
@@ -610,7 +609,7 @@ - (void)testIdentityRequestComplete { |
610 | 609 | } |
611 | 610 |
|
612 | 611 | - (void)testIdentifyIdentityRequestCompleteWithKits { |
613 | | - id mockPersistenceController = OCMClassMock([MPPersistenceController class]); |
| 612 | + id mockPersistenceController = OCMClassMock([MPPersistenceController_PRIVATE class]); |
614 | 613 | [[[mockPersistenceController stub] andReturn:@"42"] mpId]; |
615 | 614 |
|
616 | 615 | id mockInstance = OCMClassMock([MParticle class]); |
@@ -642,7 +641,7 @@ - (void)testIdentifyIdentityRequestCompleteWithKits { |
642 | 641 | } |
643 | 642 |
|
644 | 643 | - (void)testLoginIdentityRequestCompleteWithKits { |
645 | | - id mockPersistenceController = OCMClassMock([MPPersistenceController class]); |
| 644 | + id mockPersistenceController = OCMClassMock([MPPersistenceController_PRIVATE class]); |
646 | 645 | [[[mockPersistenceController stub] andReturn:@"42"] mpId]; |
647 | 646 |
|
648 | 647 | id mockInstance = OCMClassMock([MParticle class]); |
@@ -674,7 +673,7 @@ - (void)testLoginIdentityRequestCompleteWithKits { |
674 | 673 | } |
675 | 674 |
|
676 | 675 | - (void)testLogoutIdentityRequestCompleteWithKits { |
677 | | - id mockPersistenceController = OCMClassMock([MPPersistenceController class]); |
| 676 | + id mockPersistenceController = OCMClassMock([MPPersistenceController_PRIVATE class]); |
678 | 677 | [[[mockPersistenceController stub] andReturn:@"42"] mpId]; |
679 | 678 |
|
680 | 679 | id mockInstance = OCMClassMock([MParticle class]); |
@@ -702,7 +701,7 @@ - (void)testLogoutIdentityRequestCompleteWithKits { |
702 | 701 | } |
703 | 702 |
|
704 | 703 | - (void)testIdentifyIdentityRequestCompleteWithKitsAndNoUserChange { |
705 | | - id mockPersistenceController = OCMClassMock([MPPersistenceController class]); |
| 704 | + id mockPersistenceController = OCMClassMock([MPPersistenceController_PRIVATE class]); |
706 | 705 | [[[mockPersistenceController stub] andReturn:@"42"] mpId]; |
707 | 706 |
|
708 | 707 | id mockInstance = OCMClassMock([MParticle class]); |
@@ -734,7 +733,7 @@ - (void)testIdentifyIdentityRequestCompleteWithKitsAndNoUserChange { |
734 | 733 | } |
735 | 734 |
|
736 | 735 | - (void)testLoginIdentityRequestCompleteWithKitsAndNoUserChange { |
737 | | - id mockPersistenceController = OCMClassMock([MPPersistenceController class]); |
| 736 | + id mockPersistenceController = OCMClassMock([MPPersistenceController_PRIVATE class]); |
738 | 737 | [[[mockPersistenceController stub] andReturn:@"42"] mpId]; |
739 | 738 |
|
740 | 739 | id mockInstance = OCMClassMock([MParticle class]); |
@@ -766,7 +765,7 @@ - (void)testLoginIdentityRequestCompleteWithKitsAndNoUserChange { |
766 | 765 | } |
767 | 766 |
|
768 | 767 | - (void)testLogoutIdentityRequestCompleteWithKitsAndNoUserChange { |
769 | | - id mockPersistenceController = OCMClassMock([MPPersistenceController class]); |
| 768 | + id mockPersistenceController = OCMClassMock([MPPersistenceController_PRIVATE class]); |
770 | 769 | [[[mockPersistenceController stub] andReturn:@"42"] mpId]; |
771 | 770 |
|
772 | 771 | id mockInstance = OCMClassMock([MParticle class]); |
@@ -794,7 +793,7 @@ - (void)testLogoutIdentityRequestCompleteWithKitsAndNoUserChange { |
794 | 793 | } |
795 | 794 |
|
796 | 795 | - (void)testMPIdZeroToMPId { |
797 | | - id mockPersistenceController = OCMClassMock([MPPersistenceController class]); |
| 796 | + id mockPersistenceController = OCMClassMock([MPPersistenceController_PRIVATE class]); |
798 | 797 | [[[mockPersistenceController stub] andReturn:@"0"] mpId]; |
799 | 798 |
|
800 | 799 | id mockInstance = OCMClassMock([MParticle class]); |
|
0 commit comments