From 214d7fa22ce2e54bda2427ab4e66cbd4d6bce3d9 Mon Sep 17 00:00:00 2001 From: Joan He <johe@magento.com> Date: Fri, 21 Oct 2016 09:35:04 -0500 Subject: [PATCH] MAGETWO-59444: Create serializer interface and json class in framework - Fix static test failure --- .../Test/Unit/Model/ShippingInformationManagementTest.php | 3 +++ .../Magento/Customer/Test/Unit/Model/Address/ConfigTest.php | 3 +++ app/code/Magento/SalesRule/Test/Unit/Model/RuleTest.php | 3 +++ 3 files changed, 9 insertions(+) diff --git a/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php b/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php index c0649bef17f..c19abf318aa 100644 --- a/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php +++ b/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php @@ -106,6 +106,9 @@ class ShippingInformationManagementTest extends \PHPUnit_Framework_TestCase */ private $shippingMock; + /** + * @SuppressWarnings(PHPMD.ExcessiveMethodLength) + */ protected function setUp() { $this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this); diff --git a/app/code/Magento/Customer/Test/Unit/Model/Address/ConfigTest.php b/app/code/Magento/Customer/Test/Unit/Model/Address/ConfigTest.php index d9499812cea..9209a96101c 100644 --- a/app/code/Magento/Customer/Test/Unit/Model/Address/ConfigTest.php +++ b/app/code/Magento/Customer/Test/Unit/Model/Address/ConfigTest.php @@ -5,6 +5,9 @@ */ namespace Magento\Customer\Test\Unit\Model\Address; +/** + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) + */ class ConfigTest extends \PHPUnit_Framework_TestCase { /** diff --git a/app/code/Magento/SalesRule/Test/Unit/Model/RuleTest.php b/app/code/Magento/SalesRule/Test/Unit/Model/RuleTest.php index d7f58dce737..c17c6dfe98b 100644 --- a/app/code/Magento/SalesRule/Test/Unit/Model/RuleTest.php +++ b/app/code/Magento/SalesRule/Test/Unit/Model/RuleTest.php @@ -5,6 +5,9 @@ */ namespace Magento\SalesRule\Test\Unit\Model; +/** + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) + */ class RuleTest extends \PHPUnit_Framework_TestCase { /** -- GitLab