Skip to content

Commit e3633cc

Browse files
committed
fixed phpunit
1 parent 4294b2b commit e3633cc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/code/Meta/BusinessExtension/Test/Unit/Helper/FBEHelperTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ class FBEHelperTest extends TestCase
4747
*/
4848
private $moduleList;
4949

50+
/**
51+
* @var ProductMetadataInterface|MockObject
52+
*/
53+
private $productMetaData;
54+
5055
/**
5156
* Used to reset or change values after running a test
5257
*
@@ -71,7 +76,7 @@ public function setUp(): void
7176
$resourceConnection = $this->createMock(ResourceConnection::class);
7277
$this->moduleList = $this->createMock(ModuleListInterface::class);
7378
$systemConfig = $this->createMock(Config::class);
74-
$productMetaData = $this->createMock(ProductMetadataInterface::class);
79+
$this->productMetaData = $this->createMock(ProductMetadataInterface::class);
7580
$this->fbeHelper = new FBEHelper(
7681
$context,
7782
$this->objectManagerInterface,
@@ -81,7 +86,7 @@ public function setUp(): void
8186
$resourceConnection,
8287
$this->moduleList,
8388
$systemConfig,
84-
$productMetaData
89+
$this->productMetaData
8590
);
8691
}
8792

@@ -104,7 +109,7 @@ public function testCorrectPartnerAgent()
104109
->disableOriginalConstructor()
105110
->setMethods(['getVersion', 'getEdition', 'getName'])
106111
->getMock();
107-
$this->productMetadata->expects($this->once())->method('getVersion')->willReturn($magentoVersion);
112+
$this->productMetaData->expects($this->once())->method('getVersion')->willReturn($magentoVersion);
108113
$this->objectManagerInterface->method('get')->willReturn($productMetadata);
109114
$this->assertEquals(
110115
sprintf('%s-%s-%s', $source, $magentoVersion, $pluginVersion),

0 commit comments

Comments
 (0)