File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \Framework \Exception \ValidatorException ;
14
14
use Magento \Theme \Model \DesignConfigRepository ;
15
15
16
- class ValidateDesignConfig
16
+ class DesignPathValidatorPlugin
17
17
{
18
18
/**
19
19
* @param Structure $structure
Original file line number Diff line number Diff line change 14
14
use Magento \Theme \Api \Data \DesignConfigExtensionInterface ;
15
15
use Magento \Theme \Api \Data \DesignConfigInterface ;
16
16
use Magento \Theme \Model \DesignConfigRepository ;
17
- use Magento \Theme \Plugin \ValidateDesignConfig ;
17
+ use Magento \Theme \Plugin \DesignPathValidatorPlugin ;
18
18
use PHPUnit \Framework \MockObject \Exception ;
19
19
use PHPUnit \Framework \MockObject \MockObject ;
20
20
use PHPUnit \Framework \TestCase ;
21
21
22
- class ValidateDesignConfigTest extends TestCase
22
+ class DesignPathValidatorPluginTest extends TestCase
23
23
{
24
24
/**
25
25
* @var Structure|MockObject
@@ -32,15 +32,15 @@ class ValidateDesignConfigTest extends TestCase
32
32
private $ designConfigRepository ;
33
33
34
34
/**
35
- * @var ValidateDesignConfig
35
+ * @var DesignPathValidatorPlugin
36
36
*/
37
37
private $ plugin ;
38
38
39
39
protected function setUp (): void
40
40
{
41
41
$ this ->structure = $ this ->createMock (Structure::class);
42
42
$ this ->designConfigRepository = $ this ->createMock (DesignConfigRepository::class);
43
- $ this ->plugin = new ValidateDesignConfig ($ this ->structure , $ this ->designConfigRepository );
43
+ $ this ->plugin = new DesignPathValidatorPlugin ($ this ->structure , $ this ->designConfigRepository );
44
44
}
45
45
46
46
/**
Original file line number Diff line number Diff line change 42
42
</arguments >
43
43
</type >
44
44
<type name =" Magento\Config\Model\Config\PathValidator" >
45
- <plugin name =" validate_design_configs_plugin " type =" Magento\Theme\Plugin\ValidateDesignConfig " />
45
+ <plugin name =" validate_design_paths_plugin " type =" Magento\Theme\Plugin\DesignPathValidatorPlugin " />
46
46
</type >
47
47
</config >
You can’t perform that action at this time.
0 commit comments