Skip to content

Commit b33e775

Browse files
Merge remote-tracking branch 'origin/MAGETWO-69750' into MPI-PR-705
2 parents 6697f4d + aadea5f commit b33e775

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

app/code/Magento/Payment/Model/Method/Adapter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ public function validate()
397397
try {
398398
$validator = $this->getValidatorPool()->get('global');
399399
} catch (\Exception $e) {
400-
$this->logger->critical($e);
401400
return $this;
402401
}
403402

app/code/Magento/Payment/Test/Unit/Model/Method/AdapterTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -357,18 +357,4 @@ public function testExecuteCommandWithCommandPool()
357357

358358
$adapter->authorize($paymentInfo, 10);
359359
}
360-
361-
public function testValidationExceptionLogged()
362-
{
363-
$exception = new \Exception('We can test exception logging!');
364-
365-
$this->validatorPool->expects(static::once())
366-
->method('get')
367-
->with('global')
368-
->willThrowException($exception);
369-
$this->logger->expects(static::once())
370-
->method('critical')
371-
->with($exception);
372-
$this->adapter->validate();
373-
}
374360
}

0 commit comments

Comments
 (0)