File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
app/code/Magento/Catalog/Test/Unit/Model/ResourceModel Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 21
21
use Magento \Eav \Model \Config ;
22
22
use Magento \Eav \Model \Entity \Type ;
23
23
24
- /**
25
- * @SuppressWarnings(PHPMD.TooManyFields)
26
- * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27
- */
28
24
class CategoryTest extends \PHPUnit_Framework_TestCase
29
25
{
30
26
/**
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ protected function setUp()
154
154
);
155
155
$ productLimitationFactoryMock = $ this ->getMockBuilder (
156
156
ProductLimitationFactory::class
157
- )->disableOriginalConstructor ()->getMock ();
157
+ )->disableOriginalConstructor ()->setMethods ([ ' create ' ])-> getMock ();
158
158
159
159
$ productLimitationFactoryMock ->method ('create ' )
160
160
->willReturn ($ productLimitationMock );
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ function ($store) {
136
136
$ this ->dateTimeMock = $ this ->getMock (\Magento \Framework \Stdlib \DateTime::class);
137
137
$ productLimitationFactoryMock = $ this ->getMockBuilder (
138
138
ProductLimitationFactory::class
139
- )->disableOriginalConstructor ()->getMock ();
139
+ )->disableOriginalConstructor ()->setMethods ([ ' create ' ])-> getMock ();
140
140
141
141
$ productLimitationFactoryMock ->method ('create ' )
142
142
->willReturn ($ this ->getMock (ProductLimitation::class));
You can’t perform that action at this time.
0 commit comments