Skip to content

Commit 3705bc3

Browse files
committed
MC-40561: Stabilize unit tests
1 parent 198c76f commit 3705bc3

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

app/code/Magento/SalesRule/Test/Unit/Model/Coupon/MassgeneratorTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ protected function setUp(): void
3737
public function testGenerateCode(array $data, $length)
3838
{
3939
$salesRuleCouponMock = $this->createPartialMock(
40-
\Magento\SalesRule\Helper\Coupon::class, ['getCharset', 'getCodeSeparator']
40+
\Magento\SalesRule\Helper\Coupon::class,
41+
['getCharset', 'getCodeSeparator']
4142
);
4243

4344
/** @var \Magento\SalesRule\Model\Coupon\Massgenerator $massgenerator */
@@ -174,7 +175,8 @@ public function testGeneratePoolException()
174175
];
175176

176177
$salesRuleCouponMock = $this->createPartialMock(
177-
\Magento\SalesRule\Helper\Coupon::class, ['getCharset', 'getCodeSeparator']
178+
\Magento\SalesRule\Helper\Coupon::class,
179+
['getCharset', 'getCodeSeparator']
178180
);
179181
$resourceMock = $this->createPartialMock(
180182
\Magento\SalesRule\Model\ResourceModel\Coupon::class,

app/code/Magento/User/Observer/Backend/AuthObserver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ private function _updateLockingInformation($user)
189189

190190
/**
191191
* Check whether the latest password is expired
192+
*
192193
* Side-effect can be when passwords were changed with different lifetime configuration settings
193194
*
194195
* @param array $latestPassword

dev/tests/static/testsuite/Magento/Test/Legacy/PhtmlTemplateTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function testJsComponentsAreProperlyInitializedInDataMageInitAttribute()
114114
$invoker(
115115
/**
116116
* JS components in data-mage-init attributes should be initialized not in php.
117-
* JS components should be initialized in templates for them to be properly statically analyzed for bundling.
117+
* JS components should be initialized in templates for them to be properly statically analyzed for bundling
118118
*
119119
* @param string $file
120120
*/
@@ -158,7 +158,7 @@ private function getFilesData($filePattern)
158158
$result = [];
159159
foreach (glob(__DIR__ . '/_files/initialize_javascript/' . $filePattern) as $file) {
160160
$fileData = include $file;
161-
$result = array_merge($result, $fileData);
161+
$result = array_merge($result, $fileData); //phpcs:ignore
162162
}
163163
return $result;
164164
}
@@ -169,7 +169,7 @@ public function testJsComponentsAreProperlyInitializedInXMagentoInitAttribute()
169169
$invoker(
170170
/**
171171
* JS components in x-magento-init attributes should be initialized not in php.
172-
* JS components should be initialized in templates for them to be properly statically analyzed for bundling.
172+
* JS components should be initialized in templates for them to be properly statically analyzed for bundling
173173
*
174174
* @param string $file
175175
*/

0 commit comments

Comments
 (0)