File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
dev/tests/integration/testsuite/Magento/Bundle/Model Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ class ProductTest extends \PHPUnit\Framework\TestCase
39
39
*/
40
40
private $ objectManager ;
41
41
42
+ /**
43
+ * @return void
44
+ */
42
45
protected function setUp ()
43
46
{
44
47
$ this ->objectManager = Bootstrap::getObjectManager ();
@@ -47,6 +50,13 @@ protected function setUp()
47
50
$ this ->model ->setTypeId (Type::TYPE_BUNDLE );
48
51
}
49
52
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
+ */
50
60
public function testGetSetTypeInstance ()
51
61
{
52
62
// model getter
@@ -86,6 +96,12 @@ public function testCRUD()
86
96
$ crud ->testCrud ();
87
97
}
88
98
99
+ /**
100
+ * Tests Get product price model
101
+ *
102
+ * @see \Magento\Catalog\Model\Product::getPriceModel
103
+ * @return void
104
+ */
89
105
public function testGetPriceModel ()
90
106
{
91
107
$ this ->model ->setTypeId (Type::TYPE_BUNDLE );
@@ -94,6 +110,12 @@ public function testGetPriceModel()
94
110
$ this ->assertSame ($ type , $ this ->model ->getPriceModel ());
95
111
}
96
112
113
+ /**
114
+ * Tests Check is product composite
115
+ *
116
+ * @see \Magento\Catalog\Model\Product::isComposite
117
+ * @return void
118
+ */
97
119
public function testIsComposite ()
98
120
{
99
121
$ this ->assertTrue ($ this ->model ->isComposite ());
You can’t perform that action at this time.
0 commit comments