@@ -59,7 +59,7 @@ protected function setUp(): void
59
59
$ objectManager ->setBackwardCompatibleProperty ($ this ->_model , 'imageUrlBuilder ' , $ this ->imageUrlBuilder );
60
60
}
61
61
62
- public function testGetAllowAttributes ()
62
+ public function testGetAllowAttributes (): void
63
63
{
64
64
$ typeInstanceMock = $ this ->createMock (Configurable::class);
65
65
$ typeInstanceMock ->expects ($ this ->once ())
@@ -82,7 +82,7 @@ public function testGetAllowAttributes()
82
82
* @param array $data
83
83
* @dataProvider getOptionsDataProvider
84
84
*/
85
- public function testGetOptions (array $ expected , array $ data )
85
+ public function testGetOptions (array $ expected , array $ data ): array
86
86
{
87
87
if (count ($ data ['allowed_products ' ])) {
88
88
$ imageHelper1 = $ this ->getMockBuilder (Image::class)
@@ -118,8 +118,9 @@ public function testGetOptions(array $expected, array $data)
118
118
119
119
/**
120
120
* @return array
121
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
121
122
*/
122
- public function getOptionsDataProvider ()
123
+ public function getOptionsDataProvider (): array
123
124
{
124
125
$ currentProductMock = $ this ->createPartialMock (
125
126
Product::class,
@@ -225,7 +226,7 @@ public function getOptionsDataProvider()
225
226
* @param string $key
226
227
* @return string
227
228
*/
228
- public function getDataCallback ($ key )
229
+ public function getDataCallback ($ key ): string
229
230
{
230
231
$ map = [];
231
232
for ($ k = 1 ; $ k < 3 ; $ k ++) {
@@ -289,7 +290,7 @@ public function testGetGalleryImages()
289
290
/**
290
291
* @return Collection
291
292
*/
292
- private function getImagesCollection ()
293
+ private function getImagesCollection (): MockObject
293
294
{
294
295
$ collectionMock = $ this ->getMockBuilder (Collection::class)
295
296
->disableOriginalConstructor ()
0 commit comments