Skip to content

Commit 84a9904

Browse files
committed
remove unused method
1 parent 5260ffa commit 84a9904

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/Concerns/InteractsWithTickets.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,6 @@ public function isUnlocked(): bool
118118
return ! $this->isLocked();
119119
}
120120

121-
/**
122-
* Delete the ticket
123-
*
124-
* @return bool
125-
*/
126-
public function delete(): bool
127-
{
128-
return $this->delete();
129-
}
130-
131121
/**
132122
* Mark the ticket as resolved
133123
*

tests/Feature/TicketTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,11 @@
229229
$this->assertTrue($ticket->isUnlocked());
230230
$this->assertTrue($lockedTicket->isLocked());
231231
});
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

Comments
 (0)