@@ -187,7 +187,7 @@ class EavTest extends AbstractModifierTest
187187 * @var ObjectManager
188188 */
189189 protected $ objectManager ;
190-
190+
191191 /**
192192 * @var Eav
193193 */
@@ -324,7 +324,7 @@ protected function setUp()
324324 $ this ->eavAttributeMock ->expects ($ this ->any ())
325325 ->method ('load ' )
326326 ->willReturnSelf ();
327-
327+
328328 $ this ->eav =$ this ->getModel ();
329329 $ this ->objectManager ->setBackwardCompatibleProperty (
330330 $ this ->eav ,
@@ -490,6 +490,10 @@ public function testSetupAttributeMetaDefaultAttribute($productId, $productRequi
490490 ->method ('getNote ' )
491491 ->willReturn ($ note );
492492
493+ $ this ->productAttributeMock ->expects ($ this ->any ())
494+ ->method ('getDefaultFrontendLabel ' )
495+ ->willReturn (new Phrase ('mylabel ' ));
496+
493497 $ attributeMock = $ this ->getMockBuilder (AttributeInterface::class)
494498 ->setMethods (['getValue ' ])
495499 ->disableOriginalConstructor ()
@@ -561,7 +565,7 @@ private function defaultNullProdNotNewAndRequired()
561565 'required ' => true ,
562566 'notice ' => null ,
563567 'default ' => null ,
564- 'label ' => null ,
568+ 'label ' => new Phrase ( ' mylabel ' ) ,
565569 'code ' => 'code ' ,
566570 'source ' => 'product-details ' ,
567571 'scopeLabel ' => '' ,
@@ -588,7 +592,7 @@ private function defaultNullProdNotNewAndNotRequired()
588592 'required ' => false ,
589593 'notice ' => null ,
590594 'default ' => null ,
591- 'label ' => null ,
595+ 'label ' => new Phrase ( ' mylabel ' ) ,
592596 'code ' => 'code ' ,
593597 'source ' => 'product-details ' ,
594598 'scopeLabel ' => '' ,
@@ -615,7 +619,7 @@ private function defaultNullProdNewAndNotRequired()
615619 'required ' => false ,
616620 'notice ' => null ,
617621 'default ' => 'required_value ' ,
618- 'label ' => null ,
622+ 'label ' => new Phrase ( ' mylabel ' ) ,
619623 'code ' => 'code ' ,
620624 'source ' => 'product-details ' ,
621625 'scopeLabel ' => '' ,
@@ -642,7 +646,7 @@ private function defaultNullProdNewAndRequired()
642646 'required ' => false ,
643647 'notice ' => null ,
644648 'default ' => 'required_value ' ,
645- 'label ' => null ,
649+ 'label ' => new Phrase ( ' mylabel ' ) ,
646650 'code ' => 'code ' ,
647651 'source ' => 'product-details ' ,
648652 'scopeLabel ' => '' ,
@@ -669,7 +673,7 @@ private function defaultNullProdNewAndRequiredAndFilledNotice()
669673 'required ' => false ,
670674 'notice ' => __ ('example notice ' ),
671675 'default ' => 'required_value ' ,
672- 'label ' => null ,
676+ 'label ' => new Phrase ( ' mylabel ' ) ,
673677 'code ' => 'code ' ,
674678 'source ' => 'product-details ' ,
675679 'scopeLabel ' => '' ,
0 commit comments