92 - Dealing with Out of Sync Mocks

This commit is contained in:
Adam Wathan
2017-04-01 14:00:59 -04:00
parent 084d1999a9
commit 6023eb3c8f
5 changed files with 218 additions and 192 deletions

View File

@@ -27,7 +27,7 @@ class Ticket extends Model
public function claimFor($order)
{
$this->code = TicketCode::generate();
$this->code = TicketCode::generateFor($this);
$order->tickets()->save($this);
}