We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5260ffa commit 84a9904Copy full SHA for 84a9904
src/Concerns/InteractsWithTickets.php
@@ -118,16 +118,6 @@ public function isUnlocked(): bool
118
return ! $this->isLocked();
119
}
120
121
- /**
122
- * Delete the ticket
123
- *
124
- * @return bool
125
- */
126
- public function delete(): bool
127
- {
128
- return $this->delete();
129
- }
130
-
131
/**
132
* Mark the ticket as resolved
133
*
tests/Feature/TicketTest.php
@@ -229,3 +229,11 @@
229
$this->assertTrue($ticket->isUnlocked());
230
$this->assertTrue($lockedTicket->isLocked());
231
});
232
+
233
+it('can delete a ticket', function () {
234
+ $ticket = Ticket::factory()->create();
235
236
+ $ticket->delete();
237
238
+ $this->assertEquals(Ticket::count(), 0);
239
+});
0 commit comments