93 - Wiring It All Together

This commit is contained in:
Adam Wathan
2017-04-01 14:09:54 -04:00
parent 6023eb3c8f
commit e3f337f377
4 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
<?php
use App\Concert;
use App\Facades\TicketCode;
use App\Billing\PaymentGateway;
use App\Billing\FakePaymentGateway;
use App\Facades\OrderConfirmationNumber;
@@ -54,6 +55,7 @@ class PurchaseTicketsTest extends TestCase
$this->disableExceptionHandling();
OrderConfirmationNumber::shouldReceive('generate')->andReturn('ORDERCONFIRMATION1234');
TicketCode::shouldReceive('generateFor')->andReturn('TICKETCODE1', 'TICKETCODE2', 'TICKETCODE3');
$concert = factory(Concert::class)->states('published')->create(['ticket_price' => 3250])->addTickets(3);