Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Commit

Permalink
bump to 1.2.5
Browse files Browse the repository at this point in the history
Summary:
bump to 1.2.5
fixed unit test failure

Reviewed By: zlik

Differential Revision: D27049964

fbshipit-source-id: 111065a1
  • Loading branch information
xxu3-sc authored and facebook-github-bot committed Mar 15, 2021
1 parent 430248d commit 492af87
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Test/Mftf/Data/PluginInfoData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
<entity name="_pluginInfo" type="PluginInfo">
<data key="source">magento2</data>
<data key="pluginVersion">1.2.4</data>
<data key="pluginVersion">1.2.5</data>
</entity>
</entities>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Magento\Catalog\Model\Product;
use Magento\Framework\Event;
use Magento\Framework\Event\Observer;
use Magento\Store\Api\Data\StoreInterface;
use PHPUnit\Framework\MockObject\MockObject;

class ProcessProductAfterSaveEventObserverTest extends CommonTest
Expand All @@ -24,6 +25,10 @@ class ProcessProductAfterSaveEventObserverTest extends CommonTest
* @var MockObject
*/
private $_product;
/**
* @var MockObject
*/
private $store;
/**
* @var MockObject
*/
Expand All @@ -46,6 +51,8 @@ public function tearDown()
public function setUp()
{
parent::setUp();
$this->store = $this->createMock(StoreInterface::class);
$this->fbeHelper->expects($this->once())->method('getStore')->will($this->returnValue($this->store));
$this->_product = $this->createMock(Product::class);
$this->_product->expects($this->once())->method('getId')->will($this->returnValue("1234"));
$event = $this->createPartialMock(Event::class, ['getProduct']);
Expand All @@ -66,4 +73,4 @@ public function testExcution()
$this->fbeHelper->expects($this->atLeastOnce())->method('makeHttpRequest');
$this->processProductAfterSaveEventObserver->execute($this->_eventObserverMock);
}
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Facebook Business Extension for Magento 2",
"type": "magento2-module",
"license": "GPL-1.0-or-later",
"version": "1.2.4",
"version": "1.2.5",
"require": {
"facebook/php-business-sdk": "9.0.3"
},
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Facebook_BusinessExtension" setup_version="1.2.4">
<module name="Facebook_BusinessExtension" setup_version="1.2.5">
</module>
</config>

0 comments on commit 492af87

Please sign in to comment.