Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
c74256b
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Jan 22, 2018
f7856be
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Jan 22, 2018
4c4f79d
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-84702-2
Jan 23, 2018
143b1fc
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Jan 24, 2018
21f4a33
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Jan 24, 2018
9a9e423
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-84702-2
Jan 25, 2018
9610892
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-84702-2
Jan 30, 2018
72176e7
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Jan 30, 2018
92eb410
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Jan 31, 2018
cd9d7b7
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-84702-2
Feb 1, 2018
90f3e08
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-84702-2
Feb 6, 2018
a227c2b
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Feb 6, 2018
9d9d87b
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Feb 7, 2018
f6e86ca
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-84702-2
Feb 8, 2018
f4bbd66
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-84702-2
Feb 8, 2018
7d32eef
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Feb 8, 2018
2e33602
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-84702-2
Feb 9, 2018
b2a9c0a
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Feb 9, 2018
f8ce301
MQE-741: two steps with same step key, the later step will overwrite …
okolesnyk Feb 9, 2018
d5055ef
MAGETWO-84702: [SE Dev] Error Messages edits, part 1 (966 of 1166 total)
Feb 9, 2018
dfd734e
Fix load order of view.xml when loading Swatch config
Feb 5, 2018
d3d6f70
forwardport-pull-13462: Switch updatecart qty input validators to dyn…
p-bystritsky Feb 12, 2018
7a66968
forwardport-pull-13485: Update code formatting in Swagger Block
p-bystritsky Feb 12, 2018
7efa886
Merge branch '2.3-develop' of github.com:magento/magento2ce into MQE-…
okolesnyk Feb 13, 2018
18872a1
MAGETWO-87845: InsertDefaultMagentoVariableIntoWYSIWYGOnPagesCest fai…
imeron2433 Feb 13, 2018
90a77c5
MAGETWO-87869: Fix load order of view.xml when loading Swatch config …
dmanners Feb 14, 2018
89a913d
merge magento/2.3-develop into magento-qwerty/MAGETWO-84702-2
Feb 14, 2018
bf22081
MAGETWO-87895: Forwardport-pull-13462: Switch updatecart qty input va…
rogyar Feb 14, 2018
4294036
MAGETWO-87896: Forwardport-pull-13485: Update code formatting in Swag…
rogyar Feb 14, 2018
7773b33
MAGETWO-71404: Mftf tests creation
irenelagno Feb 14, 2018
3edc3bc
MAGETWO-87561: Stabilize MFTF tests
irenelagno Feb 15, 2018
5d82e0c
MQE-799: Bump MFTF version to 2.0.3 and test fixes
okolesnyk Feb 15, 2018
d7ad0d2
MAGETWO-87482: Build stabilization
irenelagno Feb 16, 2018
d54b6ab
merge magento/2.3-develop into magento-trigger/MAGETWO-71404
Feb 16, 2018
c41371c
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-84702-2
Feb 16, 2018
f2ac731
Merge branch '2.3-develop' of github.com:magento/magento2ce into MQE-…
okolesnyk Feb 16, 2018
8aaea59
Merge pull request #2086 from magento-qwerty/MAGETWO-84702-2
dvoskoboinikov Feb 16, 2018
f20e485
Merge branch '2.3-develop' of github.com:magento/magento2ce into MQE-…
okolesnyk Feb 16, 2018
775653a
MAGETWO-87482: Build stabilization
irenelagno Feb 16, 2018
b231233
MAGETWO-87896: Forwardport-pull-13485: Update code formatting in Swag…
Feb 16, 2018
8c7db5e
MAGETWO-87895: Forwardport-pull-13462: Switch updatecart qty input va…
Feb 16, 2018
b03376d
MQE-799: Bump MFTF version to 2.0.3 and test fixes
okolesnyk Feb 16, 2018
61b23fb
merge magento/2.3-develop into magento-trigger/MAGETWO-71404
Feb 16, 2018
2f888a3
Merge pull request #2080 from magento-pangolin/MQE-741-2.3-develop
okolesnyk Feb 16, 2018
fda863e
MAGETWO-87869: Fix load order of view.xml when loading Swatch config …
Feb 16, 2018
f9278c1
[EngCom] Public Pull Requests - 2.3-develop
magento-engcom-team Feb 16, 2018
ae90570
MAGETWO-87482: Build stabilization
irenelagno Feb 16, 2018
1c051ff
Merge branch '2.3-develop-main' into MAGETWO-71404
irenelagno Feb 16, 2018
37d8bf1
:arrows_clockwise: [EngCom] Public Pull Requests - 2.3-develop
magento-engcom-team Feb 16, 2018
36a8ac4
Merge branch '2.3-develop' into MAGETWO-71404
Feb 16, 2018
09ec6ed
MAGETWO-87482: Build stabilization
irenelagno Feb 17, 2018
6e50041
MAGETWO-87482: Build stabilization
irenelagno Feb 17, 2018
1060edf
Merge pull request #2081 from magento-trigger/MAGETWO-71404
heyitsroberthe Feb 19, 2018
d470f94
Ensure DeploymentConfig Reader always returns an array Throw exceptio…
barryvdh Feb 9, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public function afterSave()
$result = preg_match('#(?<hour>\d{2}),(?<min>\d{2}),(?<sec>\d{2})#', $this->getValue(), $time);

if (!$result) {
throw new LocalizedException(__('Time value has an unsupported format'));
throw new LocalizedException(
__('The time value is using an unsupported format. Enter a supported format and try again.')
);
}

$cronExprArray = [
Expand Down
13 changes: 9 additions & 4 deletions app/code/Magento/Analytics/Model/Cryptographer.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,18 @@ public function encode($source)
try {
$source = (string)$source;
} catch (\Exception $e) {
throw new LocalizedException(__('Input data must be string or convertible into string.'));
throw new LocalizedException(
__(
'The data is invalid. '
. 'Enter the data as a string or data that can be converted into a string and try again.'
)
);
}
} elseif (!$source) {
throw new LocalizedException(__('Input data must be non-empty string.'));
throw new LocalizedException(__('The data is invalid. Enter the data as a string and try again.'));
}
if (!$this->validateCipherMethod($this->cipherMethod)) {
throw new LocalizedException(__('Not valid cipher method.'));
throw new LocalizedException(__('The data is invalid. Use a valid cipher method and try again.'));
}
$initializationVector = $this->getInitializationVector();

Expand Down Expand Up @@ -90,7 +95,7 @@ private function getKey()
{
$token = $this->analyticsToken->getToken();
if (!$token) {
throw new LocalizedException(__('Encryption key can\'t be empty.'));
throw new LocalizedException(__('Enter the encryption key and try again.'));
}
return hash('sha256', $token);
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Analytics/Model/ExportDataHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private function pack($source, $destination)
private function validateSource(WriteInterface $directory, $path)
{
if (!$directory->isExist($path)) {
throw new LocalizedException(__('Source "%1" is not exist', $directory->getAbsolutePath($path)));
throw new LocalizedException(__('The "%1" source doesn\'t exist.', $directory->getAbsolutePath($path)));
}

return $directory->getAbsolutePath($path);
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Authorization/Model/Acl/AclRetriever.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function getAllowedResourcesByUser($userType, $userId)
$role = $this->_getUserRole($userType, $userId);
if (!$role) {
throw new AuthorizationException(
__('We can\'t find the role for the user you wanted.')
__("The role wasn't found for the user. Verify the role and try again.")
);
}
$allowedResources = $this->getAllowedResourcesByRole($role->getId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function testGetAllowedResourcesByUserTypeCustomer()

/**
* @expectedException \Magento\Framework\Exception\AuthorizationException
* @expectedExceptionMessage We can't find the role for the user you wanted.
* @expectedExceptionMessage The role wasn't found for the user. Verify the role and try again.
*/
public function testGetAllowedResourcesByUserRoleNotFound()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Authorizenet\Controller\Directpost\Payment;

use Magento\Authorizenet\Controller\Directpost\Payment;
Expand Down Expand Up @@ -147,7 +148,7 @@ protected function placeCheckoutOrder()
$result->setData('error', true);
$result->setData(
'error_messages',
__('An error occurred on the server. Please try to place the order again.')
__('A server error stopped your order from being placed. Please try to place your order again.')
);
}
if ($response instanceof Http) {
Expand Down
5 changes: 3 additions & 2 deletions app/code/Magento/Authorizenet/Model/TransactionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Authorizenet\Model;

use Magento\Framework\Exception\LocalizedException;
Expand Down Expand Up @@ -124,15 +125,15 @@ protected function loadTransactionDetails(Authorizenet $context, $transactionId)
$responseXmlDocument = new Element($responseBody);
libxml_use_internal_errors(false);
} catch (\Exception $e) {
throw new LocalizedException(__('Unable to get transaction details. Try again later.'));
throw new LocalizedException(__('The transaction details are unavailable. Please try again later.'));
} finally {
$context->debugData($debugData);
}

if (!isset($responseXmlDocument->messages->resultCode)
|| $responseXmlDocument->messages->resultCode != static::PAYMENT_UPDATE_STATUS_CODE_SUCCESS
) {
throw new LocalizedException(__('Unable to get transaction details. Try again later.'));
throw new LocalizedException(__('The transaction details are unavailable. Please try again later.'));
}

$this->transactionDetails[$transactionId] = $responseXmlDocument;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Authorizenet\Test\Unit\Controller\Directpost\Payment;

use Magento\Authorizenet\Controller\Directpost\Payment\Place;
Expand Down Expand Up @@ -297,7 +298,9 @@ public function textExecuteFailedPlaceOrderDataProvider()
$objectFailed1 = new \Magento\Framework\DataObject(
[
'error' => true,
'error_messages' => __('An error occurred on the server. Please try to place the order again.')
'error_messages' => __(
'A server error stopped your order from being placed. Please try to place your order again.'
)
]
);
$generalException = new \Exception('Exception logging will save the world!');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Backend\Block\Widget\Grid\Massaction;

use Magento\Backend\Block\Widget\Grid\Massaction\VisibilityCheckerInterface as VisibilityChecker;
Expand Down Expand Up @@ -57,7 +58,7 @@ protected function _construct()
{
parent::_construct();

$this->setErrorText($this->escapeHtml(__('Please select items.')));
$this->setErrorText($this->escapeHtml(__('An item needs to be selected. Select and try again.')));

if (null !== $this->getOptions()) {
foreach ($this->getOptions() as $optionId => $option) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Backend\Block\Widget\Grid\Massaction;

/**
Expand Down Expand Up @@ -69,7 +70,7 @@ public function __construct(
public function _construct()
{
parent::_construct();
$this->setErrorText($this->escapeHtml(__('Please select items.')));
$this->setErrorText($this->escapeHtml(__('An item needs to be selected. Select and try again.')));
}

/**
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/Backend/Controller/Adminhtml/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Backend\Controller\Adminhtml;

use Magento\Backend\App\Action;
Expand Down Expand Up @@ -73,7 +74,7 @@ protected function _validateTypes(array $types)
$allTypes = array_keys($this->_cacheTypeList->getTypes());
$invalidTypes = array_diff($types, $allTypes);
if (count($invalidTypes) > 0) {
throw new LocalizedException(__('Specified cache type(s) don\'t exist: %1', join(', ', $invalidTypes)));
throw new LocalizedException(__('These cache type(s) don\'t exist: %1', join(', ', $invalidTypes)));
}
}
}
22 changes: 18 additions & 4 deletions app/code/Magento/Backend/Model/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Backend\Model;

use Magento\Framework\Exception\AuthenticationException;
Expand Down Expand Up @@ -148,7 +149,12 @@ public function getCredentialStorage()
public function login($username, $password)
{
if (empty($username) || empty($password)) {
self::throwException(__('You did not sign in correctly or your account is temporarily disabled.'));
self::throwException(
__(
'The account sign-in was incorrect or your account is disabled temporarily. '
. 'Please wait and try again later.'
)
);
}

try {
Expand All @@ -165,7 +171,12 @@ public function login($username, $password)
}

if (!$this->getAuthStorage()->getUser()) {
self::throwException(__('You did not sign in correctly or your account is temporarily disabled.'));
self::throwException(
__(
'The account sign-in was incorrect or your account is disabled temporarily. '
. 'Please wait and try again later.'
)
);
}
} catch (PluginAuthenticationException $e) {
$this->_eventManager->dispatch(
Expand All @@ -179,7 +190,10 @@ public function login($username, $password)
['user_name' => $username, 'exception' => $e]
);
self::throwException(
__($e->getMessage()? : 'You did not sign in correctly or your account is temporarily disabled.')
__(
$e->getMessage()? : 'The account sign-in was incorrect or your account is disabled temporarily. '
. 'Please wait and try again later.'
)
);
}
}
Expand Down Expand Up @@ -215,7 +229,7 @@ public function isLoggedIn()
public static function throwException(Phrase $msg = null)
{
if ($msg === null) {
$msg = __('Authentication error occurred.');
$msg = __('An authentication error occurred. Verify and try again.');
}
throw new AuthenticationException($msg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Backend\Model\Config\SessionLifetime;

use Magento\Framework\App\Config\Value;
Expand All @@ -26,14 +27,17 @@ class BackendModel extends Value
*/
public function beforeSave()
{
$value = (int) $this->getValue();
$value = (int)$this->getValue();
if ($value > self::MAX_LIFETIME) {
throw new LocalizedException(
__('Admin session lifetime must be less than or equal to 31536000 seconds (one year)')
__(
'The Admin session lifetime is invalid. '
. 'Set the lifetime to 31536000 seconds (one year) or shorter and try again.'
)
);
} elseif ($value < self::MIN_LIFETIME) {
throw new LocalizedException(
__('Admin session lifetime must be greater than or equal to 60 seconds')
__('The Admin session lifetime is invalid. Set the lifetime to 60 seconds or longer and try again.')
);
}
return parent::beforeSave();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Backend\Test\Unit\Controller\Adminhtml\Cache;

use PHPUnit_Framework_MockObject_MockObject as MockObject;
Expand Down Expand Up @@ -156,7 +157,7 @@ public function testExecuteInvalidTypeCache()

$this->messageManagerMock->expects($this->once())
->method('addError')
->with('Specified cache type(s) don\'t exist: someCache')
->with('These cache type(s) don\'t exist: someCache')
->willReturnSelf();

$this->assertSame($this->redirectMock, $this->controller->execute());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Backend\Test\Unit\Controller\Adminhtml\Cache;

use PHPUnit_Framework_MockObject_MockObject as MockObject;
Expand Down Expand Up @@ -156,7 +157,7 @@ public function testExecuteInvalidTypeCache()

$this->messageManagerMock->expects($this->once())
->method('addError')
->with('Specified cache type(s) don\'t exist: someCache')
->with('These cache type(s) don\'t exist: someCache')
->willReturnSelf();

$this->assertSame($this->redirectMock, $this->controller->execute());
Expand Down
11 changes: 9 additions & 2 deletions app/code/Magento/Backend/Test/Unit/Model/AuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ protected function setUp()

/**
* @expectedException \Magento\Framework\Exception\AuthenticationException
* @expectedExceptionMessage You did not sign in correctly or your account is temporarily disabled.
*/
public function testLoginFailed()
{
Expand All @@ -64,7 +63,10 @@ public function testLoginFailed()
->with(\Magento\Backend\Model\Auth\Credential\StorageInterface::class)
->will($this->returnValue($this->_credentialStorage));
$exceptionMock = new \Magento\Framework\Exception\LocalizedException(
__('You did not sign in correctly or your account is temporarily disabled.')
__(
'The account sign-in was incorrect or your account is disabled temporarily. '
. 'Please wait and try again later.'
)
);
$this->_credentialStorage
->expects($this->once())
Expand All @@ -74,5 +76,10 @@ public function testLoginFailed()
$this->_credentialStorage->expects($this->never())->method('getId');
$this->_eventManagerMock->expects($this->once())->method('dispatch')->with('backend_auth_user_login_failed');
$this->_model->login('username', 'password');

$this->expectExceptionMessage(
'The account sign-in was incorrect or your account is disabled temporarily. '
. 'Please wait and try again later.'
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Backend\Test\Unit\Model\Config\SessionLifetime;

use Magento\Backend\Model\Config\SessionLifetime\BackendModel;
Expand Down Expand Up @@ -32,11 +33,12 @@ public function adminSessionLifetimeDataProvider()
return [
[
BackendModel::MIN_LIFETIME - 1,
'Admin session lifetime must be greater than or equal to 60 seconds'
'The Admin session lifetime is invalid. Set the lifetime to 60 seconds or longer and try again.'
],
[
BackendModel::MAX_LIFETIME + 1,
'Admin session lifetime must be less than or equal to 31536000 seconds (one year)'
'The Admin session lifetime is invalid. '
. 'Set the lifetime to 31536000 seconds (one year) or shorter and try again.'
],
[
900
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Braintree\Controller\Paypal;

use Magento\Checkout\Model\Session;
Expand Down Expand Up @@ -73,7 +74,7 @@ public function dispatch(RequestInterface $request)
protected function validateQuote($quote)
{
if (!$quote || !$quote->getItemsCount()) {
throw new \InvalidArgumentException(__('We can\'t initialize checkout.'));
throw new \InvalidArgumentException(__('Checkout failed to initialize. Verify and try again.'));
}
}
}
3 changes: 2 additions & 1 deletion app/code/Magento/Braintree/Controller/Paypal/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Braintree\Controller\Paypal;

use Magento\Checkout\Model\Session;
Expand Down Expand Up @@ -66,7 +67,7 @@ public function execute()
$quote
);
} elseif (!$quote->getPayment()->getAdditionalInformation(self::$paymentMethodNonce)) {
throw new LocalizedException(__('We can\'t initialize checkout.'));
throw new LocalizedException(__('Checkout failed to initialize. Verify and try again.'));
}

/** @var \Magento\Framework\View\Result\Page $resultPage */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function execute(array $commandSubject)
$customerId = $this->subjectReader->readCustomerId($commandSubject);
$paymentToken = $this->tokenManagement->getByPublicHash($publicHash, $customerId);
if (!$paymentToken) {
throw new Exception('No available payment tokens');
throw new Exception('No payment tokens are available.');
}

$data = $this->adapter->createNonce($paymentToken->getGatewayToken());
Expand Down
Loading