@@ -70,10 +70,7 @@ public function testAroundValidateWithValidPath()
70
70
->willReturn ([$ path => $ path ]);
71
71
72
72
$ designConfig = $ this ->createMock (DesignConfigInterface::class);
73
- $ extensionAttributes = $ this ->getMockBuilder (DesignConfigExtensionInterface::class)
74
- ->disableOriginalConstructor ()
75
- ->onlyMethods (['getDesignConfigData ' , 'setDesignConfigData ' ])
76
- ->getMock ();
73
+ $ extensionAttributes = $ this ->createMock (DesignConfigDataCallableMockInterface::class);
77
74
$ designConfig ->expects ($ this ->once ())
78
75
->method ('getExtensionAttributes ' )
79
76
->willReturn ($ extensionAttributes );
@@ -114,7 +111,7 @@ public function testAroundValidateWithInvalidPath()
114
111
->willReturn ([]);
115
112
116
113
$ designConfig = $ this ->createMock (DesignConfigInterface::class);
117
- $ extensionAttributes = $ this ->createMock (DesignConfigExtensionInterface ::class);
114
+ $ extensionAttributes = $ this ->createMock (DesignConfigDataCallableMockInterface ::class);
118
115
$ designConfig ->expects ($ this ->once ())
119
116
->method ('getExtensionAttributes ' )
120
117
->willReturn ($ extensionAttributes );
@@ -130,3 +127,12 @@ public function testAroundValidateWithInvalidPath()
130
127
$ this ->plugin ->aroundValidate ($ pathValidator , $ proceed , $ path );
131
128
}
132
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