File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
app/code/Magento/Directory
Test/Unit/Model/Resource/Country Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class Collection extends \Magento\Framework\Model\Resource\Db\Collection\Abstrac
59
59
* @param \Magento\Directory\Model\Resource\CountryFactory $countryFactory
60
60
* @param \Magento\Framework\Stdlib\ArrayUtils $arrayUtils
61
61
* @param \Magento\Framework\Locale\ResolverInterface $localeResolver
62
+ * @param \Magento\Framework\App\Helper\AbstractHelper $helperData
62
63
* @param mixed $connection
63
64
* @param \Magento\Framework\Model\Resource\Db\AbstractDb $resource
64
65
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
Original file line number Diff line number Diff line change @@ -47,6 +47,13 @@ protected function setUp()
47
47
'' ,
48
48
false
49
49
);
50
+ $ helperDataMock = $ this ->getMock (
51
+ 'Magento\Directory\Helper\Data ' ,
52
+ [],
53
+ [],
54
+ '' ,
55
+ false
56
+ );
50
57
$ objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
51
58
$ arguments = [
52
59
'logger ' => $ logger ,
@@ -57,6 +64,7 @@ protected function setUp()
57
64
'scopeConfig ' => $ scopeConfigMock ,
58
65
'countryFactory ' => $ countryFactory ,
59
66
'resource ' => $ resource ,
67
+ 'helperData ' => $ helperDataMock
60
68
];
61
69
$ this ->_model = $ objectManager ->getObject ('Magento\Directory\Model\Resource\Country\Collection ' , $ arguments );
62
70
}
You can’t perform that action at this time.
0 commit comments