mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-08 01:50:30 +00:00
93 - Wiring It All Together
This commit is contained in:
@@ -15,7 +15,6 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
Mockery::getConfiguration()->allowMockingNonExistentMethods(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user