100 - Namespacing Our Test Suite

This commit is contained in:
Adam Wathan
2017-05-02 15:42:01 -04:00
parent 01602b46d4
commit bed85c66c1
18 changed files with 80 additions and 55 deletions

View File

@@ -1,10 +1,15 @@
<?php
namespace Tests;
use Exception;
use App\Exceptions\Handler;
use Illuminate\Contracts\Debug\ExceptionHandler;
abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase
{
use CreatesApplication;
/**
* The base URL to use while testing the application.
*
@@ -17,20 +22,6 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
parent::setUp();
}
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
return $app;
}
protected function disableExceptionHandling()
{
$this->app->instance(ExceptionHandler::class, new class extends Handler {