Skip to content

Commit 8f24975

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-55850: PR support
static tests fixes
1 parent 19fb45a commit 8f24975

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

app/code/Magento/Quote/Model/Product/QuoteItemsCleanerInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
interface QuoteItemsCleanerInterface
1111
{
1212
/**
13+
* @param ProductInterface $product
1314
* @return void
1415
*/
1516
public function execute(ProductInterface $product);

app/code/Magento/Quote/Test/Unit/Model/Product/Plugin/RemoveQuoteItemsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testAroundDelete()
2727
{
2828
$productResourceMock = $this->getMock(\Magento\Catalog\Model\ResourceModel\Product::class, [], [], '', false);
2929
$productMock = $this->getMock(\Magento\Catalog\Api\Data\ProductInterface::class);
30-
$closure = function ($product) use ($productResourceMock) {
30+
$closure = function () use ($productResourceMock) {
3131
return $productResourceMock;
3232
};
3333

app/code/Magento/Sales/Setup/UpgradeSchema.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Sales\Setup;
7+
78
use Magento\Framework\App\ResourceConnection;
89
use Magento\Framework\Setup\UpgradeSchemaInterface;
910
use Magento\Framework\Setup\ModuleContextInterface;
@@ -36,7 +37,8 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
3637
'sales_bestsellers_aggregated_daily',
3738
'product_id',
3839
'catalog_product_entity',
39-
'entity_id')
40+
'entity_id'
41+
)
4042
);
4143
//sales_bestsellers_aggregated_monthly
4244
$connection->dropForeignKey(
@@ -45,7 +47,8 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
4547
'sales_bestsellers_aggregated_monthly',
4648
'product_id',
4749
'catalog_product_entity',
48-
'entity_id')
50+
'entity_id'
51+
)
4952
);
5053

5154
//sales_bestsellers_aggregated_yearly
@@ -55,7 +58,8 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
5558
'sales_bestsellers_aggregated_yearly',
5659
'product_id',
5760
'catalog_product_entity',
58-
'entity_id')
61+
'entity_id'
62+
)
5963
);
6064

6165
$installer->endSetup();

dev/tests/integration/testsuite/Magento/ConfigurableProduct/_files/product_configurable.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@
110110

111111
/** @var \Magento\Quote\Model\ResourceModel\Quote\Item $itemResource */
112112
$itemResource = Bootstrap::getObjectManager()->get(\Magento\Quote\Model\ResourceModel\Quote\Item::class);
113-
$itemResource->getConnection()->delete(
114-
$itemResource->getMainTable(),
115-
'product_id = ' . $productToDelete->getId()
116-
);
113+
$itemResource->getConnection()->delete(
114+
$itemResource->getMainTable(),
115+
'product_id = ' . $productToDelete->getId()
116+
);
117117
} catch (\Exception $e) {
118118
// Nothing to remove
119119
}

0 commit comments

Comments
 (0)