@@ -77,6 +77,7 @@ public function testGetConfigIfContentIsHtml()
77
77
$ escapedCheckboxText = 'escaped_checkbox_text ' ;
78
78
$ mode = \Magento \CheckoutAgreements \Model \AgreementModeOptions::MODE_AUTO ;
79
79
$ agreementId = 100 ;
80
+ $ contentHeight = '100px ' ;
80
81
$ expectedResult = [
81
82
'checkoutAgreements ' => [
82
83
'isEnabled ' => 1 ,
@@ -86,6 +87,7 @@ public function testGetConfigIfContentIsHtml()
86
87
'checkboxText ' => $ escapedCheckboxText ,
87
88
'mode ' => $ mode ,
88
89
'agreementId ' => $ agreementId ,
90
+ 'contentHeight ' => $ contentHeight
89
91
],
90
92
],
91
93
],
@@ -116,6 +118,7 @@ public function testGetConfigIfContentIsHtml()
116
118
$ agreement ->expects ($ this ->once ())->method ('getCheckboxText ' )->willReturn ($ checkboxText );
117
119
$ agreement ->expects ($ this ->once ())->method ('getMode ' )->willReturn ($ mode );
118
120
$ agreement ->expects ($ this ->once ())->method ('getAgreementId ' )->willReturn ($ agreementId );
121
+ $ agreement ->expects ($ this ->once ())->method ('getContentHeight ' )->willReturn ($ contentHeight );
119
122
120
123
$ this ->assertEquals ($ expectedResult , $ this ->model ->getConfig ());
121
124
}
@@ -133,6 +136,7 @@ public function testGetConfigIfContentIsNotHtml()
133
136
$ escapedCheckboxText = 'escaped_checkbox_text ' ;
134
137
$ mode = \Magento \CheckoutAgreements \Model \AgreementModeOptions::MODE_AUTO ;
135
138
$ agreementId = 100 ;
139
+ $ contentHeight = '100px ' ;
136
140
$ expectedResult = [
137
141
'checkoutAgreements ' => [
138
142
'isEnabled ' => 1 ,
@@ -142,6 +146,7 @@ public function testGetConfigIfContentIsNotHtml()
142
146
'checkboxText ' => $ escapedCheckboxText ,
143
147
'mode ' => $ mode ,
144
148
'agreementId ' => $ agreementId ,
149
+ 'contentHeight ' => $ contentHeight
145
150
],
146
151
],
147
152
],
@@ -172,6 +177,7 @@ public function testGetConfigIfContentIsNotHtml()
172
177
$ agreement ->expects ($ this ->once ())->method ('getCheckboxText ' )->willReturn ($ checkboxText );
173
178
$ agreement ->expects ($ this ->once ())->method ('getMode ' )->willReturn ($ mode );
174
179
$ agreement ->expects ($ this ->once ())->method ('getAgreementId ' )->willReturn ($ agreementId );
180
+ $ agreement ->expects ($ this ->once ())->method ('getContentHeight ' )->willReturn ($ contentHeight );
175
181
176
182
$ this ->assertEquals ($ expectedResult , $ this ->model ->getConfig ());
177
183
}
0 commit comments