@@ -70,7 +70,7 @@ public function testAroundValidateWithValidPath()
70
70
->willReturn ([$ path => $ path ]);
71
71
72
72
$ designConfig = $ this ->createMock (DesignConfigInterface::class);
73
- $ extensionAttributes = $ this ->createMock (DesignConfigDataCallableMockInterface ::class);
73
+ $ extensionAttributes = $ this ->createStub (DesignConfigExtensionInterface ::class);
74
74
$ designConfig ->expects ($ this ->once ())
75
75
->method ('getExtensionAttributes ' )
76
76
->willReturn ($ extensionAttributes );
@@ -111,7 +111,7 @@ public function testAroundValidateWithInvalidPath()
111
111
->willReturn ([]);
112
112
113
113
$ designConfig = $ this ->createMock (DesignConfigInterface::class);
114
- $ extensionAttributes = $ this ->createMock (DesignConfigDataCallableMockInterface ::class);
114
+ $ extensionAttributes = $ this ->createStub (DesignConfigExtensionInterface ::class);
115
115
$ designConfig ->expects ($ this ->once ())
116
116
->method ('getExtensionAttributes ' )
117
117
->willReturn ($ extensionAttributes );
@@ -127,12 +127,3 @@ public function testAroundValidateWithInvalidPath()
127
127
$ this ->plugin ->aroundValidate ($ pathValidator , $ proceed , $ path );
128
128
}
129
129
}
130
-
131
- // @codingStandardsIgnoreStart
132
- interface DesignConfigDataCallableMockInterface
133
- {
134
- /**
135
- * @return \Magento\Theme\Api\Data\DesignConfigDataInterface[]|null
136
- */
137
- public function getDesignConfigData ();
138
- }
0 commit comments