Skip to content

Commit 68c647f

Browse files
committed
MAGETWO-35056: Merge and Fix tests
- Added phpmd @SuppressWarnings to several files
1 parent f60f4f8 commit 68c647f

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

app/code/Magento/Theme/Test/Unit/Model/CopyServiceTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ public function testCopyDatabaseCustomization()
463463

464464
/**
465465
* cover \Magento\Theme\Model\CopyService::_copyFilesystemCustomization
466+
*
467+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
466468
*/
467469
public function testCopyFilesystemCustomization()
468470
{

app/code/Magento/Webapi/Model/Config/Converter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class Converter implements \Magento\Framework\Config\ConverterInterface
3131

3232
/**
3333
* {@inheritdoc}
34+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
35+
* @SuppressWarnings(PHPMD.NPathComplexity)
3436
*/
3537
public function convert($source)
3638
{
@@ -112,6 +114,7 @@ public function convert($source)
112114
*
113115
* @param \DOMNodeList $parameters
114116
* @return array
117+
* @SuppressWarnings(PHPMD.NPathComplexity)
115118
*/
116119
protected function convertMethodParameters($parameters)
117120
{

app/code/Magento/Webapi/Model/Soap/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ public function getServiceMetadata($serviceName)
277277
* @param bool $preserveVersion Should version be preserved during interface name conversion into service name
278278
* @return string
279279
* @throws \InvalidArgumentException
280+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
280281
*/
281282
public function getServiceName($interfaceName, $version, $preserveVersion = true)
282283
{

dev/tests/api-functional/testsuite/Magento/Webapi/WsdlGenerationFromDataObjectTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ protected function _checkElementsDeclaration($wsdlContent)
181181

182182
/**
183183
* @param string $wsdlContent
184+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
184185
*/
185186
protected function _checkComplexTypesDeclaration($wsdlContent)
186187
{

0 commit comments

Comments
 (0)