Skip to content

Commit

Permalink
Merge pull request #603 from laravel/fix-stripe-api-version
Browse files Browse the repository at this point in the history
[9.0] Test against latest Stripe API version
  • Loading branch information
taylorotwell authored Jan 3, 2019
2 parents 4eadfa1 + 1b8fcfa commit 9d8c7d7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/CashierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Carbon\Carbon;
use Illuminate\Http\Request;
use Laravel\Cashier\Billable;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Schema\Builder;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\ConnectionInterface;
Expand All @@ -19,6 +18,8 @@ class CashierTest extends TestCase
{
public function setUp()
{
parent::setUp();

Eloquent::unguard();

$db = new DB;
Expand Down
14 changes: 14 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Laravel\Cashier\Tests;

use Stripe\Stripe;
use PHPUnit\Framework\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
protected function setUp()
{
Stripe::setApiVersion('2018-11-08');
}
}
1 change: 0 additions & 1 deletion tests/VerifyWebhookSignatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Mockery as m;
use Illuminate\Http\Request;
use PHPUnit\Framework\TestCase;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\Config\Repository as Config;
use Symfony\Component\HttpKernel\Exception\HttpException;
Expand Down
1 change: 0 additions & 1 deletion tests/WebhookControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Laravel\Cashier\Tests;

use Illuminate\Http\Request;
use PHPUnit\Framework\TestCase;
use Laravel\Cashier\Http\Controllers\WebhookController;

class WebhookControllerTest extends TestCase
Expand Down

0 comments on commit 9d8c7d7

Please sign in to comment.