Skip to content

Commit a63cf9e

Browse files
committed
28550 fix static
1 parent 915f78d commit a63cf9e

File tree

1 file changed

+6
-5
lines changed
  • app/code/Magento/ConfigurableProduct/Test/Unit/Helper

1 file changed

+6
-5
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Helper/DataTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function setUp(): void
5959
$objectManager->setBackwardCompatibleProperty($this->_model, 'imageUrlBuilder', $this->imageUrlBuilder);
6060
}
6161

62-
public function testGetAllowAttributes()
62+
public function testGetAllowAttributes(): void
6363
{
6464
$typeInstanceMock = $this->createMock(Configurable::class);
6565
$typeInstanceMock->expects($this->once())
@@ -82,7 +82,7 @@ public function testGetAllowAttributes()
8282
* @param array $data
8383
* @dataProvider getOptionsDataProvider
8484
*/
85-
public function testGetOptions(array $expected, array $data)
85+
public function testGetOptions(array $expected, array $data): array
8686
{
8787
if (count($data['allowed_products'])) {
8888
$imageHelper1 = $this->getMockBuilder(Image::class)
@@ -118,8 +118,9 @@ public function testGetOptions(array $expected, array $data)
118118

119119
/**
120120
* @return array
121+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
121122
*/
122-
public function getOptionsDataProvider()
123+
public function getOptionsDataProvider(): array
123124
{
124125
$currentProductMock = $this->createPartialMock(
125126
Product::class,
@@ -225,7 +226,7 @@ public function getOptionsDataProvider()
225226
* @param string $key
226227
* @return string
227228
*/
228-
public function getDataCallback($key)
229+
public function getDataCallback($key): string
229230
{
230231
$map = [];
231232
for ($k = 1; $k < 3; $k++) {
@@ -289,7 +290,7 @@ public function testGetGalleryImages()
289290
/**
290291
* @return Collection
291292
*/
292-
private function getImagesCollection()
293+
private function getImagesCollection(): MockObject
293294
{
294295
$collectionMock = $this->getMockBuilder(Collection::class)
295296
->disableOriginalConstructor()

0 commit comments

Comments
 (0)