mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
20 lines
548 B
PHP
20 lines
548 B
PHP
<?php
|
|
|
|
use App\Billing\FakePaymentGateway;
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
|
|
class FakePaymentGatewayTest extends TestCase
|
|
{
|
|
/** @test */
|
|
function charges_with_a_valid_payment_token_are_successful()
|
|
{
|
|
$paymentGateway = new FakePaymentGateway;
|
|
|
|
$paymentGateway->charge(2500, $paymentGateway->getValidTestToken());
|
|
|
|
$this->assertEquals(2500, $paymentGateway->totalCharges());
|
|
}
|
|
}
|