Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
test: Update default tests
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Apr 26, 2020
1 parent 5121672 commit 64d3fbe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 42 deletions.
22 changes: 0 additions & 22 deletions tests/CreatesApplication.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Tests\Feature;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class ExampleTest extends TestCase
Expand Down
16 changes: 15 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@

namespace Tests;

use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Illuminate\Foundation\Application;

abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
/**
* Creates the application.
*
* @return Application
*/
public function createApplication(): Application
{
$app = require __DIR__ . '/../bootstrap/app.php';

$app->make(Kernel::class)->bootstrap();

return $app;
}
}
18 changes: 0 additions & 18 deletions tests/Unit/ExampleTest.php

This file was deleted.

0 comments on commit 64d3fbe

Please sign in to comment.