@@ -26,7 +26,7 @@ public function the_recipient_should_be_encrypted_and_decrypted()
26
26
{
27
27
$ email = $ this ->sendEmail (['recipient ' => 'john@doe.com ' ]);
28
28
29
- $ this ->assertEquals ('john@doe.com ' , decrypt ($ email ->getOriginal ('recipient ' )));
29
+ $ this ->assertEquals ('john@doe.com ' , decrypt ($ email ->getRawDatabaseValue ('recipient ' )));
30
30
31
31
$ this ->assertEquals ('john@doe.com ' , $ email ->getRecipient ());
32
32
}
@@ -39,8 +39,8 @@ public function cc_and_bb_should_be_encrypted_and_decrypted()
39
39
'bcc ' => $ bcc = ['jane+1@doe.com ' , 'jane+2@doe.com ' ],
40
40
]);
41
41
42
- $ this ->assertEquals ($ cc , decrypt ($ email ->getOriginal ('cc ' )));
43
- $ this ->assertEquals ($ bcc , decrypt ($ email ->getOriginal ('bcc ' )));
42
+ $ this ->assertEquals ($ cc , decrypt ($ email ->getRawDatabaseValue ('cc ' )));
43
+ $ this ->assertEquals ($ bcc , decrypt ($ email ->getRawDatabaseValue ('bcc ' )));
44
44
45
45
$ this ->assertEquals ($ cc , $ email ->getCc ());
46
46
$ this ->assertEquals ($ bcc , $ email ->getBcc ());
@@ -51,7 +51,7 @@ public function the_subject_should_be_encrypted_and_decrypted()
51
51
{
52
52
$ email = $ this ->sendEmail (['subject ' => 'test subject ' ]);
53
53
54
- $ this ->assertEquals ('test subject ' , decrypt ($ email ->getOriginal ('subject ' )));
54
+ $ this ->assertEquals ('test subject ' , decrypt ($ email ->getRawDatabaseValue ('subject ' )));
55
55
56
56
$ this ->assertEquals ('test subject ' , $ email ->getSubject ());
57
57
}
@@ -63,7 +63,7 @@ public function the_variables_should_be_encrypted_and_decrypted()
63
63
64
64
$ this ->assertEquals (
65
65
['name ' => 'Jane Doe ' ],
66
- decrypt ($ email ->getOriginal ('variables ' ))
66
+ decrypt ($ email ->getRawDatabaseValue ('variables ' ))
67
67
);
68
68
69
69
$ this ->assertEquals (
@@ -79,7 +79,7 @@ public function the_body_should_be_encrypted_and_decrypted()
79
79
80
80
$ expectedBody = "Name: Jane Doe \n" ;
81
81
82
- $ this ->assertEquals ($ expectedBody , decrypt ($ email ->getOriginal ('body ' )));
82
+ $ this ->assertEquals ($ expectedBody , decrypt ($ email ->getRawDatabaseValue ('body ' )));
83
83
84
84
$ this ->assertEquals ($ expectedBody , $ email ->getBody ());
85
85
}
@@ -94,7 +94,7 @@ public function from_should_be_encrypted_and_decrypted()
94
94
'name ' => 'Marick ' ,
95
95
];
96
96
97
- $ this ->assertEquals ($ expect , decrypt ($ email ->getOriginal ('from ' )));
97
+ $ this ->assertEquals ($ expect , decrypt ($ email ->getRawDatabaseValue ('from ' )));
98
98
$ this ->assertEquals ($ expect , $ email ->getFrom ());
99
99
}
100
100
}
0 commit comments