Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function testSetDescription() |
||
31 | { |
||
32 | $faker = Factory::create(); |
||
33 | $sentence = $faker->sentence; |
||
34 | $product = new Product(); |
||
35 | $product->setDescription($sentence); |
||
36 | $this->assertEquals($product->getDescription(), $sentence); |
||
37 | $product->setDescription(null); |
||
38 | $this->assertEquals(null, $product->getDescription()); |
||
39 | } |
||
53 |