Skip to content

Commit 26465b6

Browse files
author
Bohdan Korablov
committed
MAGETWO-37720: Cover Tango modules w. unit tests S2 (+0.7% from current 13.6%)
- Added SuppressWarnings and some comments;
1 parent 25c0385 commit 26465b6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/code/Magento/Cms/Test/Unit/Helper/Wysiwyg/ImagesTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ public function testIsUsingStaticUrlsAllowed($allowedValue)
288288
$this->assertEquals($allowedValue, $this->imagesHelper->isUsingStaticUrlsAllowed());
289289
}
290290

291+
/**
292+
* @param bool $allowedValue
293+
* SuppressWarnings(PHPMD.UnusedFormalParameter)
294+
*/
291295
protected function generalSettingsIsUsingStaticUrlsAllowed($allowedValue)
292296
{
293297
$storeId = 1;
@@ -297,7 +301,7 @@ protected function generalSettingsIsUsingStaticUrlsAllowed($allowedValue)
297301
$this->eventManagerMock->expects($this->any())
298302
->method('dispatch')
299303
->with('cms_wysiwyg_images_static_urls_allowed', ['result' => $checkResult, 'store_id' => $storeId])
300-
->willReturnCallback(function($str, $arr) use ($allowedValue) {
304+
->willReturnCallback(function ($str, $arr) use ($allowedValue) {
301305
$arr['result']->isAllowed = $allowedValue;
302306
});
303307
}
@@ -461,6 +465,10 @@ public function providerGetImageHtmlDeclaration()
461465
];
462466
}
463467

468+
/**
469+
* @param string $baseUrl
470+
* @param bool $isUsingStaticUrls
471+
*/
464472
protected function generalSettingsGetImageHtmlDeclaration($baseUrl, $isUsingStaticUrls)
465473
{
466474
$storeId = 1;

0 commit comments

Comments
 (0)