File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
app/code/Magento/Catalog/Test/Unit/Block/Product/View Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,6 @@ class AttributesTest extends TestCase
65
65
66
66
protected function setUp ()
67
67
{
68
- // @codingStandardsIgnoreStart
69
- $ this ->phrase = new Phrase (__ ('' ));
70
- // @codingStandardsIgnoreEnd
71
68
$ this ->attribute = $ this
72
69
->getMockBuilder (AbstractAttribute::class)
73
70
->disableOriginalConstructor ()
@@ -132,9 +129,7 @@ protected function setUp()
132
129
*/
133
130
public function testGetAttributeNoValue ()
134
131
{
135
- // @codingStandardsIgnoreStart
136
- $ this ->phrase = new Phrase (__ ('' ));
137
- // @codingStandardsIgnoreEnd
132
+ $ this ->phrase = '' ;
138
133
$ this ->frontendAttribute
139
134
->expects ($ this ->any ())
140
135
->method ('getValue ' )
@@ -148,7 +143,7 @@ public function testGetAttributeNoValue()
148
143
*/
149
144
public function testGetAttributeHasValue ()
150
145
{
151
- $ this ->phrase = new Phrase ( __ ('Yes ' ) );
146
+ $ this ->phrase = __ ('Yes ' );
152
147
$ this ->frontendAttribute
153
148
->expects ($ this ->any ())
154
149
->method ('getValue ' )
You can’t perform that action at this time.
0 commit comments