Squashed commit of the following:
commit 70d23bbd8fbdbeb3b6554e42ac4283396372f39d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Feb 3 21:40:55 2017 +0000 Updade to Laravel 5.4
This commit is contained in:
parent
9ee898ba7c
commit
0a07811311
33 changed files with 581 additions and 606 deletions
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class ArticlesTest extends TestCase
|
||||
class ArticlesTest extends BrowserKitTest
|
||||
{
|
||||
protected $appurl;
|
||||
|
||||
|
|
28
tests/BrowserKitTest.php
Normal file
28
tests/BrowserKitTest.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
use Laravel\BrowserKitTesting\TestCase as BaseTestCase;
|
||||
|
||||
abstract class BrowserKitTest extends BaseTestCase
|
||||
{
|
||||
/**
|
||||
* The base URL to use while testing the application.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $baseUrl = 'http://localhost';
|
||||
|
||||
/**
|
||||
* Creates the application.
|
||||
*
|
||||
* @return \Illuminate\Foundation\Application
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
|
||||
return $app;
|
||||
}
|
||||
}
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class ContactsTest extends TestCase
|
||||
class ContactsTest extends BrowserKitTest
|
||||
{
|
||||
protected $appurl;
|
||||
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic functional test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testBasicExample()
|
||||
{
|
||||
$this->visit(config('app.url') . '/')
|
||||
->see('Jonny Barnes');
|
||||
}
|
||||
}
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class IndieAuthTest extends TestCase
|
||||
class IndieAuthTest extends BrowserKitTest
|
||||
{
|
||||
protected $appurl;
|
||||
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Lcobucci\JWT\Builder;
|
||||
use Lcobucci\JWT\Signer\Hmac\Sha256;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class MicropubClientTest extends TestCase
|
||||
class MicropubClientTest extends BrowserKitTest
|
||||
{
|
||||
protected $appurl;
|
||||
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Lcobucci\JWT\Builder;
|
||||
use Lcobucci\JWT\Signer\Hmac\Sha256;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class MicropubTest extends TestCase
|
||||
class MicropubTest extends BrowserKitTest
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class NotesAdminTest extends TestCase
|
||||
class NotesAdminTest extends BrowserKitTest
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
namespace App\Tests;
|
||||
|
||||
use Cache;
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class NotesTest extends TestCase
|
||||
class NotesTest extends BrowserKitTest
|
||||
{
|
||||
protected $appurl;
|
||||
protected $notesController;
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class PlacesTest extends TestCase
|
||||
class PlacesTest extends BrowserKitTest
|
||||
{
|
||||
protected $appurl;
|
||||
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class TokenServiceTest extends TestCase
|
||||
class TokenServiceTest extends BrowserKitTest
|
||||
{
|
||||
protected $appurl;
|
||||
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
use TestCase;
|
||||
use BrowserKitTest;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class WebMentionsTest extends TestCase
|
||||
class WebMentionsTest extends BrowserKitTest
|
||||
{
|
||||
protected $appurl;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue