File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
app/code/Magento/Quote/Test/Unit/Model/Quote Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ class AddressTest extends \PHPUnit\Framework\TestCase
47
47
*/
48
48
private $ quote ;
49
49
50
+ /**
51
+ * @var \Magento\Quote\Model\Quote\Address\CustomAttributeListInterface | \PHPUnit_Framework_MockObject_MockObject
52
+ */
53
+ private $ attributeList ;
54
+
50
55
/**
51
56
* @var \Magento\Framework\App\Config | \PHPUnit_Framework_MockObject_MockObject
52
57
*/
@@ -165,9 +170,13 @@ protected function setUp()
165
170
->disableOriginalConstructor ()
166
171
->getMock ();
167
172
173
+ $ this ->attributeList = $ this ->createMock (\Magento \Quote \Model \Quote \Address \CustomAttributeListInterface::class);
174
+ $ this ->attributeList ->method ('getAttributes ' )->willReturn ([]);
175
+
168
176
$ this ->address = $ objectManager ->getObject (
169
177
\Magento \Quote \Model \Quote \Address::class,
170
178
[
179
+ 'attributeList ' => $ this ->attributeList ,
171
180
'scopeConfig ' => $ this ->scopeConfig ,
172
181
'serializer ' => $ this ->serializer ,
173
182
'storeManager ' => $ this ->storeManager ,
You can’t perform that action at this time.
0 commit comments