Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function testCreateCategory() |
||
24 | { |
||
25 | $category1 = $this->category(); |
||
26 | $category2 = $this->category([ |
||
27 | 'title' => 'Category 2', |
||
28 | 'parent' => $category1->id, |
||
29 | ]); |
||
30 | |||
31 | $this->assertInstanceOf('\Moo\FlashCard\Entity\Category', $category2->parent()->first()); |
||
32 | $this->assertEquals($category1->title, $category2->parent()->first()->title); |
||
33 | } |
||
34 | |||
45 |