1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Tests that existing fieldset.xml files are valid to schema individually and merged.
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Test\Integrity\Modular;
use Magento\Framework\Component\ComponentRegistrar;
class FieldsetConfigFilesTest extends \Magento\TestFramework\TestCase\AbstractConfigFiles
{
/**
* Returns the reader class name that will be instantiated via ObjectManager
*
* @return string reader class name
*/
protected function _getReaderClassName()
{
return \Magento\Framework\DataObject\Copy\Config\Reader::class;
}
/**
* Returns a string that represents the path to the config file
*
* @return string
*/
protected function _getConfigFilePathGlob()
{
return 'etc/fieldset.xml';
}
/**
* Returns an absolute path to the XSD file corresponding to the XML files specified in _getConfigFilePathGlob
*
* @return string
*/
protected function _getXsdPath()
{
return $this->componentRegistrar->getPath(ComponentRegistrar::LIBRARY, 'magento/framework')
. '/DataObject/etc/fieldset_file.xsd';
}
}