Update tests a little
This commit is contained in:
@@ -14,6 +14,7 @@ namespace CachetHQ\Tests\Cachet;
|
||||
use CachetHQ\Cachet\Models\User;
|
||||
use CachetHQ\Cachet\Settings\Cache;
|
||||
use CachetHQ\Cachet\Settings\Repository;
|
||||
use CachetHQ\Tests\Cachet\CreatesApplicationTrait;
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
use Illuminate\Foundation\Testing\TestCase;
|
||||
|
||||
@@ -21,15 +22,11 @@ use Illuminate\Foundation\Testing\TestCase;
|
||||
* This is the abstract test case class.
|
||||
*
|
||||
* @author Graham Campbell <graham@alt-three.com>
|
||||
* @author James Brooks <james@alt-three.com>
|
||||
*/
|
||||
abstract class AbstractTestCase extends TestCase
|
||||
{
|
||||
/**
|
||||
* The base URL to use while testing the application.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $baseUrl = 'http://localhost';
|
||||
use CreatesApplicationTrait;
|
||||
|
||||
/**
|
||||
* Test actor.
|
||||
@@ -38,20 +35,6 @@ abstract class AbstractTestCase extends TestCase
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Creates the application.
|
||||
*
|
||||
* @return \Illuminate\Foundation\Application
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
|
||||
return $app;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sign in an user if it's the case.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user