mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-01 22:47:36 +00:00
92 - Dealing with Out of Sync Mocks
This commit is contained in:
@@ -40,7 +40,7 @@ class TicketTest extends TestCase
|
||||
{
|
||||
$order = factory(Order::class)->create();
|
||||
$ticket = factory(Ticket::class)->create(['code' => null]);
|
||||
TicketCode::shouldReceive('generate')->andReturn('TICKETCODE1');
|
||||
TicketCode::shouldReceive('generateFor')->with($ticket)->andReturn('TICKETCODE1');
|
||||
|
||||
$ticket->claimFor($order);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user