Skip to content

Commit 9786f81

Browse files
author
Mastiuhin Oleksandr
committed
Fix line exceeds maximum limit
1 parent d0b547c commit 9786f81

File tree

9 files changed

+22
-18
lines changed

9 files changed

+22
-18
lines changed

app/code/Magento/Captcha/Test/Unit/Model/CaptchaFactoryTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ public function testCreateNegative()
5555
);
5656

5757
$this->expectException('InvalidArgumentException');
58-
$this->expectExceptionMessage('Magento\Captcha\Model\\' . ucfirst(
59-
$captchaType
60-
) . ' does not implement \Magento\Captcha\Model\CaptchaInterface');
58+
$this->expectExceptionMessage('Magento\Captcha\Model\\' . ucfirst($captchaType) .
59+
' does not implement \Magento\Captcha\Model\CaptchaInterface');
6160

6261
$this->assertEquals($defaultCaptchaMock, $this->_model->create($captchaType, 'form_id'));
6362
}

app/code/Magento/Customer/Test/Unit/Model/AccountManagementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,8 @@ public function testCreateAccountWithPasswordInputException(
764764

765765
if ($testNumber == 2) {
766766
$this->expectException(\Magento\Framework\Exception\InputException::class);
767-
$this->expectExceptionMessage('Minimum of different classes of characters in password is ' . $minCharacterSetsNum .
768-
'. Classes of characters: Lower Case, Upper Case, Digits, Special Characters.');
767+
$this->expectExceptionMessage('Minimum of different classes of characters in password is ' .
768+
$minCharacterSetsNum . '. Classes of characters: Lower Case, Upper Case, Digits, Special Characters.');
769769
}
770770

771771
$customer = $this->getMockBuilder(\Magento\Customer\Api\Data\CustomerInterface::class)->getMock();

app/code/Magento/Paypal/Test/Unit/Model/Payflow/Service/Response/Handler/HandlerCompositeTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public function testConstructorSuccess()
2424
public function testConstructorException()
2525
{
2626
$this->expectException('LogicException');
27-
$this->expectExceptionMessage('Type mismatch. Expected type: HandlerInterface. Actual: string, Code: weird_handler');
27+
$this->expectExceptionMessage(
28+
'Type mismatch. Expected type: HandlerInterface. Actual: string, Code: weird_handler'
29+
);
2830

2931
new HandlerComposite(
3032
['weird_handler' => 'some value']

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductRepositoryInterfaceTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ public function testDeleteAllStoreCode($fixtureProduct)
315315
$sku = $fixtureProduct[ProductInterface::SKU];
316316
$this->saveProduct($fixtureProduct);
317317
$this->expectException('Exception');
318-
$this->expectExceptionMessage("The product that was requested doesn't exist. Verify the product and try again.");
318+
$this->expectExceptionMessage(
319+
"The product that was requested doesn't exist. Verify the product and try again."
320+
);
319321

320322
// Delete all with 'all' store code
321323
$this->deleteProduct($sku);

dev/tests/integration/testsuite/Magento/Framework/Session/ConfigTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,6 @@ public function testSettingInvalidCookieLifetime()
181181
$model->setCookieLifetime('foobar_bogus');
182182
$this->assertEquals($preVal, $model->getCookieLifetime());
183183
}
184-
185-
public function testWrongMethodCall()
186-
{
187-
$this->expectException('\BadMethodCallException');
188-
$this->expectExceptionMessage('Method "methodThatNotExist" does not exist in Magento\Framework\Session\Config');
189-
$this->_model->methodThatNotExist();
190-
}
191184

192185
public function testSettingInvalidCookieLifetime2()
193186
{

lib/internal/Magento/Framework/Validator/Test/Unit/BuilderTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,9 @@ public function invalidArgumentsDataProvider()
414414
public function testCreateValidatorInvalidInstance()
415415
{
416416
$this->expectException('InvalidArgumentException');
417-
$this->expectExceptionMessage('Constraint class "StdClass" must implement \Magento\Framework\Validator\ValidatorInterface');
417+
$this->expectExceptionMessage(
418+
'Constraint class "StdClass" must implement \Magento\Framework\Validator\ValidatorInterface'
419+
);
418420

419421
$builder = $this->_objectManager->getObject(
420422
\Magento\Framework\Validator\Builder::class,

lib/internal/Magento/Framework/Validator/Test/Unit/ConfigTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public function testCreateValidatorInvalidGroupName()
118118
public function testCreateValidatorInvalidConstraintClass()
119119
{
120120
$this->expectException('InvalidArgumentException');
121-
$this->expectExceptionMessage('Constraint class "stdClass" must implement \Magento\Framework\Validator\ValidatorInterface');
121+
$this->expectExceptionMessage(
122+
'Constraint class "stdClass" must implement \Magento\Framework\Validator\ValidatorInterface'
123+
);
122124
$this->_initConfig([__DIR__ . '/_files/validation/negative/invalid_constraint.xml']);
123125
$this->_config->createValidator('test_entity', 'test_group');
124126
}

lib/internal/Magento/Framework/View/Test/Unit/Layout/Reader/FactoryTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ public function testCreateInvalidArgument()
2727
->getObject(\Magento\Framework\View\Layout\ReaderFactory::class, ['objectManager' => $objectManager]);
2828

2929
$this->expectException('\InvalidArgumentException');
30-
$this->expectExceptionMessage($className . ' doesn\'t implement \Magento\Framework\View\Layout\ReaderInterface');
30+
$this->expectExceptionMessage(
31+
$className . ' doesn\'t implement \Magento\Framework\View\Layout\ReaderInterface'
32+
);
3133
$factory->create($className, $data);
3234
}
3335

lib/internal/Magento/Framework/Webapi/Test/Unit/Rest/Response/RendererFactoryTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ public function testGetWithWrongRendererClass()
109109
);
110110

111111
$this->expectException('LogicException');
112-
$this->expectExceptionMessage('The renderer must implement "Magento\Framework\Webapi\Rest\Response\RendererInterface".');
112+
$this->expectExceptionMessage(
113+
'The renderer must implement "Magento\Framework\Webapi\Rest\Response\RendererInterface".'
114+
);
113115
$this->_factory->get();
114116
}
115117
}

0 commit comments

Comments
 (0)