Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function create() |
||
51 | { |
||
52 | $types = $this->collection->getTypes(); |
||
53 | |||
54 | $data = array( |
||
55 | 'type' => array_rand($types), |
||
56 | 'title' => $this->faker->text(50), |
||
57 | 'store_id' => $this->getStoreId(), |
||
58 | 'status' => $this->faker->boolean(), |
||
59 | 'description' => $this->faker->text(200) |
||
60 | ); |
||
61 | |||
62 | return (bool) $this->collection->add($data); |
||
63 | } |
||
64 | |||
66 |