Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
56 | public function testUniqueCardSlug() |
||
57 | { |
||
58 | // Create a card |
||
59 | $card1 = $this->card([ |
||
60 | 'title' => 'Card one', |
||
61 | ]); |
||
62 | |||
63 | // Create another card with same title |
||
64 | $card2 = $this->card([ |
||
65 | 'title' => 'Card one', |
||
66 | ]); |
||
67 | |||
68 | // Assert that the slug is not equals |
||
69 | $this->assertNotEquals($card2->slug, $card1->slug); |
||
70 | } |
||
71 | } |
||
72 |