@@ -47,6 +47,11 @@ class FBEHelperTest extends TestCase
47
47
*/
48
48
private $ moduleList ;
49
49
50
+ /**
51
+ * @var ProductMetadataInterface|MockObject
52
+ */
53
+ private $ productMetaData ;
54
+
50
55
/**
51
56
* Used to reset or change values after running a test
52
57
*
@@ -71,7 +76,7 @@ public function setUp(): void
71
76
$ resourceConnection = $ this ->createMock (ResourceConnection::class);
72
77
$ this ->moduleList = $ this ->createMock (ModuleListInterface::class);
73
78
$ systemConfig = $ this ->createMock (Config::class);
74
- $ productMetaData = $ this ->createMock (ProductMetadataInterface::class);
79
+ $ this -> productMetaData = $ this ->createMock (ProductMetadataInterface::class);
75
80
$ this ->fbeHelper = new FBEHelper (
76
81
$ context ,
77
82
$ this ->objectManagerInterface ,
@@ -81,7 +86,7 @@ public function setUp(): void
81
86
$ resourceConnection ,
82
87
$ this ->moduleList ,
83
88
$ systemConfig ,
84
- $ productMetaData
89
+ $ this -> productMetaData
85
90
);
86
91
}
87
92
@@ -104,7 +109,7 @@ public function testCorrectPartnerAgent()
104
109
->disableOriginalConstructor ()
105
110
->setMethods (['getVersion ' , 'getEdition ' , 'getName ' ])
106
111
->getMock ();
107
- $ this ->productMetadata ->expects ($ this ->once ())->method ('getVersion ' )->willReturn ($ magentoVersion );
112
+ $ this ->productMetaData ->expects ($ this ->once ())->method ('getVersion ' )->willReturn ($ magentoVersion );
108
113
$ this ->objectManagerInterface ->method ('get ' )->willReturn ($ productMetadata );
109
114
$ this ->assertEquals (
110
115
sprintf ('%s-%s-%s ' , $ source , $ magentoVersion , $ pluginVersion ),
0 commit comments