Skip to content

Commit ed28110

Browse files
committed
MAGETWO-91558: Enable Add to Cart on bundle products when bundle item qty is not User Defined while backorders are allowed
1 parent c2d6915 commit ed28110

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

dev/tests/integration/testsuite/Magento/Bundle/Model/ProductTest.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class ProductTest extends \PHPUnit\Framework\TestCase
3939
*/
4040
private $objectManager;
4141

42+
/**
43+
* @return void
44+
*/
4245
protected function setUp()
4346
{
4447
$this->objectManager = Bootstrap::getObjectManager();
@@ -47,6 +50,13 @@ protected function setUp()
4750
$this->model->setTypeId(Type::TYPE_BUNDLE);
4851
}
4952

53+
/**
54+
* Tests Retrieve ans set type instance of the product
55+
*
56+
* @see \Magento\Catalog\Model\Product::getTypeInstance
57+
* @see \Magento\Catalog\Model\Product::setTypeInstance
58+
* @return void
59+
*/
5060
public function testGetSetTypeInstance()
5161
{
5262
// model getter
@@ -86,6 +96,12 @@ public function testCRUD()
8696
$crud->testCrud();
8797
}
8898

99+
/**
100+
* Tests Get product price model
101+
*
102+
* @see \Magento\Catalog\Model\Product::getPriceModel
103+
* @return void
104+
*/
89105
public function testGetPriceModel()
90106
{
91107
$this->model->setTypeId(Type::TYPE_BUNDLE);
@@ -94,6 +110,12 @@ public function testGetPriceModel()
94110
$this->assertSame($type, $this->model->getPriceModel());
95111
}
96112

113+
/**
114+
* Tests Check is product composite
115+
*
116+
* @see \Magento\Catalog\Model\Product::isComposite
117+
* @return void
118+
*/
97119
public function testIsComposite()
98120
{
99121
$this->assertTrue($this->model->isComposite());

0 commit comments

Comments
 (0)