Update tests a little

This commit is contained in:
James Brooks
2018-06-25 22:13:53 +01:00
parent 2dd8199816
commit 06d4964a84
5 changed files with 62 additions and 20 deletions

View File

@@ -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.
*