File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
dev/tests/integration/testsuite/Magento/Newsletter/Model/ResourceModel/Subscriber Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,15 @@ public function testShowCustomerInfo()
29
29
/** @var \Magento\Newsletter\Model\Subscriber[] $subscribers */
30
30
$ subscribers = $ this ->_collectionModel ->getItems ();
31
31
$ this ->assertCount (3 , $ subscribers );
32
+
33
+ $ subscriber = array_shift ($ subscribers );
34
+ $ this ->assertEquals ('John ' , $ subscriber ->getFirstname (), $ subscriber ->getSubscriberEmail ());
35
+ $ this ->assertEquals ('Smith ' , $ subscriber ->getLastname (), $ subscriber ->getSubscriberEmail ());
36
+
32
37
$ subscriber = array_shift ($ subscribers );
33
38
$ this ->assertEquals ('John ' , $ subscriber ->getFirstname (), $ subscriber ->getSubscriberEmail ());
34
39
$ this ->assertEquals ('Smith ' , $ subscriber ->getLastname (), $ subscriber ->getSubscriberEmail ());
40
+
35
41
$ subscriber = array_shift ($ subscribers );
36
42
$ this ->assertNull ($ subscriber ->getFirstname (), $ subscriber ->getSubscriberEmail ());
37
43
$ this ->assertNull ($ subscriber ->getLastname (), $ subscriber ->getSubscriberEmail ());
You can’t perform that action at this time.
0 commit comments