mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-16 01:53:36 +00:00
97 - Cleanup and Demo
This commit is contained in:
@@ -21,6 +21,7 @@ class PurchaseTicketsTest extends TestCase
|
|||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->paymentGateway = new FakePaymentGateway;
|
$this->paymentGateway = new FakePaymentGateway;
|
||||||
$this->app->instance(PaymentGateway::class, $this->paymentGateway);
|
$this->app->instance(PaymentGateway::class, $this->paymentGateway);
|
||||||
|
Mail::fake();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function orderTickets($concert, $params)
|
private function orderTickets($concert, $params)
|
||||||
@@ -55,7 +56,6 @@ class PurchaseTicketsTest extends TestCase
|
|||||||
function customer_can_purchase_tickets_to_a_published_concert()
|
function customer_can_purchase_tickets_to_a_published_concert()
|
||||||
{
|
{
|
||||||
$this->disableExceptionHandling();
|
$this->disableExceptionHandling();
|
||||||
Mail::fake();
|
|
||||||
|
|
||||||
OrderConfirmationNumber::shouldReceive('generate')->andReturn('ORDERCONFIRMATION1234');
|
OrderConfirmationNumber::shouldReceive('generate')->andReturn('ORDERCONFIRMATION1234');
|
||||||
TicketCode::shouldReceive('generateFor')->andReturn('TICKETCODE1', 'TICKETCODE2', 'TICKETCODE3');
|
TicketCode::shouldReceive('generateFor')->andReturn('TICKETCODE1', 'TICKETCODE2', 'TICKETCODE3');
|
||||||
|
|||||||
Reference in New Issue
Block a user