File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
app/code/Magento/Theme/Test/Unit/Plugin Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,12 @@ public function testAroundValidateWithValidPath()
70
70
->willReturn ([$ path => $ path ]);
71
71
72
72
$ designConfig = $ this ->createMock (DesignConfigInterface::class);
73
- $ extensionAttributes = $ this ->createStub (DesignConfigExtensionInterface::class);
73
+ $ extensionAttributes = $ this ->createConfiguredStub (
74
+ DesignConfigExtensionInterface::class,
75
+ [
76
+ 'getDesignConfigData ' => []
77
+ ]
78
+ );
74
79
$ designConfig ->expects ($ this ->once ())
75
80
->method ('getExtensionAttributes ' )
76
81
->willReturn ($ extensionAttributes );
@@ -111,7 +116,12 @@ public function testAroundValidateWithInvalidPath()
111
116
->willReturn ([]);
112
117
113
118
$ designConfig = $ this ->createMock (DesignConfigInterface::class);
114
- $ extensionAttributes = $ this ->createStub (DesignConfigExtensionInterface::class);
119
+ $ extensionAttributes = $ this ->createConfiguredStub (
120
+ DesignConfigExtensionInterface::class,
121
+ [
122
+ 'getDesignConfigData ' => []
123
+ ]
124
+ );
115
125
$ designConfig ->expects ($ this ->once ())
116
126
->method ('getExtensionAttributes ' )
117
127
->willReturn ($ extensionAttributes );
You can’t perform that action at this time.
0 commit comments