97 - Cleanup and Demo

This commit is contained in:
Adam Wathan
2017-04-18 14:41:19 -04:00
parent cbbb986af7
commit 9d0fb299b8

View File

@@ -21,6 +21,7 @@ class PurchaseTicketsTest extends TestCase
parent::setUp();
$this->paymentGateway = new FakePaymentGateway;
$this->app->instance(PaymentGateway::class, $this->paymentGateway);
Mail::fake();
}
private function orderTickets($concert, $params)
@@ -55,7 +56,6 @@ class PurchaseTicketsTest extends TestCase
function customer_can_purchase_tickets_to_a_published_concert()
{
$this->disableExceptionHandling();
Mail::fake();
OrderConfirmationNumber::shouldReceive('generate')->andReturn('ORDERCONFIRMATION1234');
TicketCode::shouldReceive('generateFor')->andReturn('TICKETCODE1', 'TICKETCODE2', 'TICKETCODE3');