File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
app/code/Magento/Newsletter/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,8 @@ public function testSubscribe(
136
136
->with (Subscriber::XML_PATH_CONFIRMATION_FLAG , ScopeInterface::SCOPE_STORE , $ storeId )
137
137
->willReturn ($ isConfirmNeed );
138
138
139
- $ this ->assertEquals (
140
- $ subscriber ,
141
- $ this ->subscriptionManager ->subscribe ($ email , $ storeId )
142
- );
143
- $ this ->assertEquals ($ subscriber ->getData (), $ expectedData );
139
+ $ this ->assertEquals ($ subscriber , $ this ->subscriptionManager ->subscribe ($ email , $ storeId ));
140
+ $ this ->assertEquals ($ expectedData , $ subscriber ->getData ());
144
141
}
145
142
146
143
/**
@@ -308,7 +305,7 @@ public function testSubscribeCustomer(
308
305
$ subscriber ,
309
306
$ this ->subscriptionManager ->subscribeCustomer ($ customerId , $ storeId )
310
307
);
311
- $ this ->assertEquals ($ subscriber ->getData (), $ expectedData );
308
+ $ this ->assertEquals ($ expectedData , $ subscriber ->getData ());
312
309
}
313
310
314
311
/**
@@ -553,7 +550,7 @@ public function testUnsubscribeCustomer(
553
550
$ subscriber ,
554
551
$ this ->subscriptionManager ->unsubscribeCustomer ($ customerId , $ storeId )
555
552
);
556
- $ this ->assertEquals ($ subscriber ->getData (), $ expectedData );
553
+ $ this ->assertEquals ($ expectedData , $ subscriber ->getData ());
557
554
}
558
555
559
556
/**
You can’t perform that action at this time.
0 commit comments