Skip to content

Commit 0ff969a

Browse files
committed
MAGETWO-66064: Remove usages of unserialize in module Magento/Catalog
1 parent 2bbc3c8 commit 0ff969a

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/CategoryTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
use Magento\Eav\Model\Config;
2222
use Magento\Eav\Model\Entity\Type;
2323

24-
/**
25-
* @SuppressWarnings(PHPMD.TooManyFields)
26-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27-
*/
2824
class CategoryTest extends \PHPUnit_Framework_TestCase
2925
{
3026
/**

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/CollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ protected function setUp()
154154
);
155155
$productLimitationFactoryMock = $this->getMockBuilder(
156156
ProductLimitationFactory::class
157-
)->disableOriginalConstructor()->getMock();
157+
)->disableOriginalConstructor()->setMethods(['create'])->getMock();
158158

159159
$productLimitationFactoryMock->method('create')
160160
->willReturn($productLimitationMock);

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/Link/Product/CollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function ($store) {
136136
$this->dateTimeMock = $this->getMock(\Magento\Framework\Stdlib\DateTime::class);
137137
$productLimitationFactoryMock = $this->getMockBuilder(
138138
ProductLimitationFactory::class
139-
)->disableOriginalConstructor()->getMock();
139+
)->disableOriginalConstructor()->setMethods(['create'])->getMock();
140140

141141
$productLimitationFactoryMock->method('create')
142142
->willReturn($this->getMock(ProductLimitation::class));

0 commit comments

Comments
 (0)