| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ProductTest extends AbstractTest |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * testSetAmount |
||
| 17 | */ |
||
| 18 | public function testSetAmount() |
||
| 19 | { |
||
| 20 | $faker = Factory::create(); |
||
| 21 | $number = $faker->randomDigitNotNull; |
||
| 22 | $product = new Product(); |
||
| 23 | $product->setQuantity($number); |
||
| 24 | $this->assertEquals($product->getQuantity(), $number); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * testSetDescription |
||
| 29 | */ |
||
| 30 | public function testSetDescription() |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * testSetQuantity |
||
| 43 | */ |
||
| 44 | public function testSetQuantity() |
||
| 53 |