Skip to content

Commit 9b4072d

Browse files
committed
MC-40087: Incerase test coverage of "Magento/Catalog/Model/Entity/Product/Attribute/Design/Options/Container"
1 parent f374811 commit 9b4072d

File tree

1 file changed

+5
-5
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Model/Entity/Product/Attribute/Design/Options

1 file changed

+5
-5
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Entity/Product/Attribute/Design/Options/ContainerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ protected function setUp(): void
3838
/**
3939
* @dataProvider getOptionTextDataProvider
4040
* @param string $value
41-
* @param array $expectedValue
41+
* @param string|bool $expectedValue
4242
* @return void
4343
*/
44-
public function testGetOptionText(string $value, array $expectedValue): void
44+
public function testGetOptionText(string $value, $expectedValue): void
4545
{
4646
$actualValue = $this->container->getOptionText($value);
47-
$this->assertEquals($expectedValue[0], $actualValue);
47+
$this->assertEquals($expectedValue, $actualValue);
4848
}
4949

5050
/**
@@ -55,11 +55,11 @@ public function getOptionTextDataProvider(): array
5555
return [
5656
'with_value' => [
5757
'value' => 'container2',
58-
'expected_value' => [__('Block after Info Column')],
58+
'expected_value' => __('Block after Info Column'),
5959
],
6060
'with_not_valid_value' => [
6161
'value' => 'container3',
62-
'expected_value' => [false],
62+
'expected_value' => false,
6363
],
6464
];
6565
}

0 commit comments

Comments
 (0)