Skip to content

Commit abda299

Browse files
author
Roman Ganin
committed
Merge remote-tracking branch 'origin/MAGETWO-36857' into develop
2 parents 45be231 + 3365a03 commit abda299

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

app/code/Magento/Reports/Model/Resource/Quote/Collection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ public function addSubtotal($storeIds = '', $filter = null)
8181
$this->getSelect()->columns(
8282
['subtotal' => '(main_table.base_subtotal_with_discount*main_table.base_to_global_rate)']
8383
);
84-
$this->_joinedFields['subtotal'] = '(main_table.base_subtotal_with_discount*main_table.base_to_global_rate)';
84+
$this->_joinedFields['subtotal'] =
85+
'(main_table.base_subtotal_with_discount*main_table.base_to_global_rate)';
8586
} else {
8687
$this->getSelect()->columns(['subtotal' => 'main_table.base_subtotal_with_discount']);
8788
$this->_joinedFields['subtotal'] = 'main_table.base_subtotal_with_discount';

app/code/Magento/Reports/Model/Resource/Quote/Item/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/**
1010
* Collection of Magento\Quote\Model\Quote\Item
11+
*
12+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1113
*/
1214
class Collection extends \Magento\Framework\Model\Resource\Db\Collection\AbstractCollection
1315
{

app/code/Magento/Reports/Test/Unit/Model/Resource/Quote/Item/CollectionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,4 @@ function () {
271271
$this->collection->getItems()[0]->getData()
272272
);
273273
}
274-
275274
}
276-

dev/tests/integration/testsuite/Magento/Reports/Block/Adminhtml/Shopcart/Abandoned/GridTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ public function testGridContent()
3434
$this->assertEquals('customer@example.com', $quote->getCustomerEmail());
3535
$this->assertEquals(10.00, $quote->getSubtotal());
3636
}
37-
}
37+
}

dev/tests/integration/testsuite/Magento/Reports/Block/Adminhtml/Shopcart/GridTestAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ protected function setUp()
2929
$quoteFixture->setCustomer($customerData);
3030
$quoteFixture->save();
3131
}
32-
}
32+
}

dev/tests/integration/testsuite/Magento/Reports/Block/Adminhtml/Shopcart/Product/GridTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ public function testGridContent()
3636
$this->assertEquals(1, $quoteItem->getProductId());
3737
$this->assertEquals('Simple Product', $quoteItem->getName());
3838
}
39-
}
39+
}

0 commit comments

Comments
 (0)