@@ -62,8 +62,9 @@ public function testSendTrueWithoutCustomerCopy()
62
62
{
63
63
$ billingAddress = $ this ->addressMock ;
64
64
$ comment = 'comment_test ' ;
65
- $ customerName ='Test Customer ' ;
66
- $ frontendStatusLabel ='Processing ' ;
65
+ $ customerName = 'Test Customer ' ;
66
+ $ frontendStatusLabel = 'Processing ' ;
67
+ $ isNotVirtual = true ;
67
68
68
69
$ this ->orderMock ->expects ($ this ->once ())
69
70
->method ('getCustomerIsGuest ' )
@@ -76,6 +77,9 @@ public function testSendTrueWithoutCustomerCopy()
76
77
$ this ->orderMock ->expects ($ this ->any ())
77
78
->method ('getCustomerName ' )
78
79
->willReturn ($ customerName );
80
+ $ this ->orderMock ->expects ($ this ->any ())
81
+ ->method ('getIsNotVirtual ' )
82
+ ->willReturn ($ isNotVirtual );
79
83
$ this ->orderMock ->expects ($ this ->once ())
80
84
->method ('getFrontendStatusLabel ' )
81
85
->willReturn ($ frontendStatusLabel );
@@ -92,7 +96,8 @@ public function testSendTrueWithoutCustomerCopy()
92
96
'formattedBillingAddress ' => 1 ,
93
97
'order_data ' => [
94
98
'customer_name ' => $ customerName ,
95
- 'frontend_status_label ' => $ frontendStatusLabel
99
+ 'frontend_status_label ' => $ frontendStatusLabel ,
100
+ 'is_not_virtual ' => $ isNotVirtual ,
96
101
]
97
102
]
98
103
);
@@ -105,8 +110,9 @@ public function testSendTrueWithCustomerCopy()
105
110
{
106
111
$ billingAddress = $ this ->addressMock ;
107
112
$ comment = 'comment_test ' ;
108
- $ customerName ='Test Customer ' ;
109
- $ frontendStatusLabel ='Processing ' ;
113
+ $ customerName = 'Test Customer ' ;
114
+ $ frontendStatusLabel = 'Processing ' ;
115
+ $ isNotVirtual = true ;
110
116
111
117
$ this ->orderMock ->expects ($ this ->once ())
112
118
->method ('getCustomerIsGuest ' )
@@ -122,6 +128,9 @@ public function testSendTrueWithCustomerCopy()
122
128
$ this ->orderMock ->expects ($ this ->any ())
123
129
->method ('getCustomerName ' )
124
130
->willReturn ($ customerName );
131
+ $ this ->orderMock ->expects ($ this ->any ())
132
+ ->method ('getIsNotVirtual ' )
133
+ ->willReturn ($ isNotVirtual );
125
134
$ this ->orderMock ->expects ($ this ->once ())
126
135
->method ('getFrontendStatusLabel ' )
127
136
->willReturn ($ frontendStatusLabel );
@@ -138,7 +147,8 @@ public function testSendTrueWithCustomerCopy()
138
147
'formattedBillingAddress ' => 1 ,
139
148
'order_data ' => [
140
149
'customer_name ' => $ customerName ,
141
- 'frontend_status_label ' => $ frontendStatusLabel
150
+ 'frontend_status_label ' => $ frontendStatusLabel ,
151
+ 'is_not_virtual ' => $ isNotVirtual ,
142
152
]
143
153
]
144
154
);
@@ -152,15 +162,19 @@ public function testSendVirtualOrder()
152
162
$ isVirtualOrder = true ;
153
163
$ this ->orderMock ->setData (OrderInterface::IS_VIRTUAL , $ isVirtualOrder );
154
164
$ this ->stepAddressFormat ($ this ->addressMock , $ isVirtualOrder );
155
- $ customerName ='Test Customer ' ;
156
- $ frontendStatusLabel ='Complete ' ;
165
+ $ customerName = 'Test Customer ' ;
166
+ $ frontendStatusLabel = 'Complete ' ;
167
+ $ isNotVirtual = false ;
157
168
158
169
$ this ->identityContainerMock ->expects ($ this ->once ())
159
170
->method ('isEnabled ' )
160
171
->willReturn (false );
161
172
$ this ->orderMock ->expects ($ this ->any ())
162
173
->method ('getCustomerName ' )
163
174
->willReturn ($ customerName );
175
+ $ this ->orderMock ->expects ($ this ->any ())
176
+ ->method ('getIsNotVirtual ' )
177
+ ->willReturn ($ isNotVirtual );
164
178
$ this ->orderMock ->expects ($ this ->once ())
165
179
->method ('getFrontendStatusLabel ' )
166
180
->willReturn ($ frontendStatusLabel );
@@ -177,7 +191,8 @@ public function testSendVirtualOrder()
177
191
'formattedBillingAddress ' => 1 ,
178
192
'order_data ' => [
179
193
'customer_name ' => $ customerName ,
180
- 'frontend_status_label ' => $ frontendStatusLabel
194
+ 'frontend_status_label ' => $ frontendStatusLabel ,
195
+ 'is_not_virtual ' => $ isNotVirtual
181
196
]
182
197
183
198
]
0 commit comments