17 $this->_sut = new \Magento\Config\Model\Config\Structure\Mapper\Helper\RelativePathConverter();
22 $nodePath =
'node/path';
25 $exceptionMessage = sprintf(
'Invalid relative path %s in %s node',
$relativePath, $nodePath);
27 $this->expectException(
'InvalidArgumentException');
28 $this->expectExceptionMessage($exceptionMessage);
39 $this->expectException(
'InvalidArgumentException');
40 $this->expectExceptionMessage(
'Invalid arguments');
60 return [[
'',
''], [
'some/node',
''], [
'',
'some/node']];
69 [
'currentNode',
'relativeNode',
'relativeNode'],
70 [
'current/node/path',
'relative/node/path',
'relative/node/path'],
71 [
'current/node',
'siblingRelativeNode',
'current/siblingRelativeNode'],
72 [
'current/node',
'*/siblingNode',
'current/siblingNode'],
73 [
'very/deep/node/hierarchy',
'*/*/sourceNode',
'very/deep/sourceNode']
testConvert($nodePath, $relativePath, $result)
convertWithInvalidArgumentsDataProvider()
testConvertWithInvalidRelativePath()
testConvertWithInvalidArguments($nodePath, $relativePath)