Skip to content

Commit 3473c1c

Browse files
committed
magento#9961: Unused product attributes display with value N/A or NO on storefront.
1 parent a5c064a commit 3473c1c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

app/code/Magento/Catalog/Test/Unit/Block/Product/View/AttributesTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ class AttributesTest extends TestCase
6565

6666
protected function setUp()
6767
{
68-
// @codingStandardsIgnoreStart
69-
$this->phrase = new Phrase(__(''));
70-
// @codingStandardsIgnoreEnd
7168
$this->attribute = $this
7269
->getMockBuilder(AbstractAttribute::class)
7370
->disableOriginalConstructor()
@@ -132,9 +129,7 @@ protected function setUp()
132129
*/
133130
public function testGetAttributeNoValue()
134131
{
135-
// @codingStandardsIgnoreStart
136-
$this->phrase = new Phrase(__(''));
137-
// @codingStandardsIgnoreEnd
132+
$this->phrase = '';
138133
$this->frontendAttribute
139134
->expects($this->any())
140135
->method('getValue')
@@ -148,7 +143,7 @@ public function testGetAttributeNoValue()
148143
*/
149144
public function testGetAttributeHasValue()
150145
{
151-
$this->phrase = new Phrase(__('Yes'));
146+
$this->phrase = __('Yes');
152147
$this->frontendAttribute
153148
->expects($this->any())
154149
->method('getValue')

0 commit comments

Comments
 (0)