File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/internal/Magento/Framework/ObjectManager/Test/Unit/Code/Generator/_files Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ class SampleRepository implements SampleRepositoryInterface
67
67
public function get($id)
68
68
{
69
69
if (!$id) {
70
- throw new \Magento\Framework\Exception\InputException('ID required');
70
+ throw new \Magento\Framework\Exception\InputException(__( 'ID required') );
71
71
}
72
72
if (!isset($this->registry[$id])) {
73
73
$entity = $this->sampleInterfacePersistor->loadEntity($id);
74
74
if (!$entity->getId()) {
75
- throw new \Magento\Framework\Exception\NoSuchEntityException('Requested entity doesn\'t exist');
75
+ throw new \Magento\Framework\Exception\NoSuchEntityException(__( 'Requested entity doesn\'t exist') );
76
76
}
77
77
$this->registry[$id] = $entity;
78
78
}
Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ class TSampleRepository implements TSampleRepositoryInterface
67
67
public function get(int $id) : \Magento\Framework\ObjectManager\Code\Generator\TSampleInterface
68
68
{
69
69
if (!$id) {
70
- throw new \Magento\Framework\Exception\InputException('ID required');
70
+ throw new \Magento\Framework\Exception\InputException(__( 'ID required') );
71
71
}
72
72
if (!isset($this->registry[$id])) {
73
73
$entity = $this->tSampleInterfacePersistor->loadEntity($id);
74
74
if (!$entity->getId()) {
75
- throw new \Magento\Framework\Exception\NoSuchEntityException('Requested entity doesn\'t exist');
75
+ throw new \Magento\Framework\Exception\NoSuchEntityException(__( 'Requested entity doesn\'t exist') );
76
76
}
77
77
$this->registry[$id] = $entity;
78
78
}
You can’t perform that action at this time.
0 commit comments