Skip to content

Commit c513972

Browse files
author
Volodymyr Kublytskyi
committed
Stabilization magento-partners/magento2ce#82
1 parent cc7cf15 commit c513972

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,10 +1192,6 @@ public function testInitiatePasswordResetEmailReset()
11921192
$this->assertTrue($this->accountManagement->initiatePasswordReset($email, $template));
11931193
}
11941194

1195-
/**
1196-
* @expectedException \Magento\Framework\Exception\InputException
1197-
* @expectedExceptionMessage Invalid value of "" provided for the template field. Possible values are email_reminder or email_reset.
1198-
*/
11991195
public function testInitiatePasswordResetNoTemplate()
12001196
{
12011197
$storeId = 1;
@@ -1211,6 +1207,10 @@ public function testInitiatePasswordResetNoTemplate()
12111207

12121208
$this->prepareInitiatePasswordReset($email, $templateIdentifier, $sender, $storeId, $customerId, $hash);
12131209

1210+
$this->setExpectedException(
1211+
\Magento\Framework\Exception\InputException::class,
1212+
'Invalid value of "" provided for the template field. Possible values are email_reminder or email_reset.'
1213+
);
12141214
$this->accountManagement->initiatePasswordReset($email, $template);
12151215
}
12161216

app/code/Magento/ImportExport/Model/ResourceModel/Import/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ public function saveBunch($entity, $behavior, array $data)
161161

162162
$encodedData = $this->jsonHelper->jsonEncode($data);
163163

164-
if ( json_last_error()!==JSON_ERROR_NONE && empty($encodedData) ) {
164+
if (json_last_error() !== JSON_ERROR_NONE && empty($encodedData)) {
165165
throw new \Magento\Framework\Exception\ValidatorException(
166-
__( 'Error in CSV: ' . json_last_error_msg() )
166+
__('Error in CSV: ' . json_last_error_msg())
167167
);
168168
}
169169

0 commit comments

Comments
 (0)