@@ -187,7 +187,7 @@ class EavTest extends AbstractModifierTest
187
187
* @var ObjectManager
188
188
*/
189
189
protected $ objectManager ;
190
-
190
+
191
191
/**
192
192
* @var Eav
193
193
*/
@@ -324,7 +324,7 @@ protected function setUp()
324
324
$ this ->eavAttributeMock ->expects ($ this ->any ())
325
325
->method ('load ' )
326
326
->willReturnSelf ();
327
-
327
+
328
328
$ this ->eav =$ this ->getModel ();
329
329
$ this ->objectManager ->setBackwardCompatibleProperty (
330
330
$ this ->eav ,
@@ -490,6 +490,10 @@ public function testSetupAttributeMetaDefaultAttribute($productId, $productRequi
490
490
->method ('getNote ' )
491
491
->willReturn ($ note );
492
492
493
+ $ this ->productAttributeMock ->expects ($ this ->any ())
494
+ ->method ('getDefaultFrontendLabel ' )
495
+ ->willReturn (new Phrase ('mylabel ' ));
496
+
493
497
$ attributeMock = $ this ->getMockBuilder (AttributeInterface::class)
494
498
->setMethods (['getValue ' ])
495
499
->disableOriginalConstructor ()
@@ -561,7 +565,7 @@ private function defaultNullProdNotNewAndRequired()
561
565
'required ' => true ,
562
566
'notice ' => null ,
563
567
'default ' => null ,
564
- 'label ' => null ,
568
+ 'label ' => new Phrase ( ' mylabel ' ) ,
565
569
'code ' => 'code ' ,
566
570
'source ' => 'product-details ' ,
567
571
'scopeLabel ' => '' ,
@@ -588,7 +592,7 @@ private function defaultNullProdNotNewAndNotRequired()
588
592
'required ' => false ,
589
593
'notice ' => null ,
590
594
'default ' => null ,
591
- 'label ' => null ,
595
+ 'label ' => new Phrase ( ' mylabel ' ) ,
592
596
'code ' => 'code ' ,
593
597
'source ' => 'product-details ' ,
594
598
'scopeLabel ' => '' ,
@@ -615,7 +619,7 @@ private function defaultNullProdNewAndNotRequired()
615
619
'required ' => false ,
616
620
'notice ' => null ,
617
621
'default ' => 'required_value ' ,
618
- 'label ' => null ,
622
+ 'label ' => new Phrase ( ' mylabel ' ) ,
619
623
'code ' => 'code ' ,
620
624
'source ' => 'product-details ' ,
621
625
'scopeLabel ' => '' ,
@@ -642,7 +646,7 @@ private function defaultNullProdNewAndRequired()
642
646
'required ' => false ,
643
647
'notice ' => null ,
644
648
'default ' => 'required_value ' ,
645
- 'label ' => null ,
649
+ 'label ' => new Phrase ( ' mylabel ' ) ,
646
650
'code ' => 'code ' ,
647
651
'source ' => 'product-details ' ,
648
652
'scopeLabel ' => '' ,
@@ -669,7 +673,7 @@ private function defaultNullProdNewAndRequiredAndFilledNotice()
669
673
'required ' => false ,
670
674
'notice ' => __ ('example notice ' ),
671
675
'default ' => 'required_value ' ,
672
- 'label ' => null ,
676
+ 'label ' => new Phrase ( ' mylabel ' ) ,
673
677
'code ' => 'code ' ,
674
678
'source ' => 'product-details ' ,
675
679
'scopeLabel ' => '' ,
0 commit comments