mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 03:04:05 +00:00
6.4 - Requestception
This commit is contained in:
@@ -102,6 +102,18 @@ class PurchaseTicketsTest extends TestCase
|
||||
$this->assertEquals(50, $concert->ticketsRemaining());
|
||||
}
|
||||
|
||||
/** @test */
|
||||
function cannot_purchase_tickets_another_customer_is_already_trying_to_purchase()
|
||||
{
|
||||
$concert = factory(Concert::class)->states('published')->create()->addTickets(3);
|
||||
|
||||
$this->orderTickets($concert, [
|
||||
'email' => 'personA@example.com',
|
||||
'ticket_quantity' => 51,
|
||||
'payment_token' => $this->paymentGateway->getValidTestToken(),
|
||||
]);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
function email_is_required_to_purchase_tickets()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user