Skip to content

Commit b32ac0c

Browse files
MAGETWO-64226: Add paths validation
1 parent 69bff64 commit b32ac0c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Config/Model/Config/PathValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function validate($path)
3939
$allPaths = $this->structure->getFieldPaths();
4040

4141
if (!array_key_exists($path, $allPaths)) {
42-
throw new ValidatorException(__('The "%1" path does not exists', $path));
42+
throw new ValidatorException(__('The "%1" path does not exist', $path));
4343
}
4444

4545
return true;

app/code/Magento/Config/Test/Unit/Model/Config/PathValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testValidate()
5555

5656
/**
5757
* @expectedException \Magento\Framework\Exception\ValidatorException
58-
* @expectedExceptionMessage The "test/test/test" path does not exists
58+
* @expectedExceptionMessage The "test/test/test" path does not exist
5959
*/
6060
public function testValidateWithException()
6161
{

dev/tests/integration/testsuite/Magento/Config/Console/Command/ConfigSetCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ function (Mock $output) {
521521
function (Mock $output) {
522522
$output->expects($this->once())
523523
->method('writeln')
524-
->with('<error>The "test/test/test" path does not exists</error>');
524+
->with('<error>The "test/test/test" path does not exist</error>');
525525
},
526526
'test/test/test',
527527
'value',

0 commit comments

Comments
 (0)