Skip to content

Commit

Permalink
Import RefreshDatabase for test
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersai committed Feb 22, 2021
1 parent f511f0e commit 3e58e48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion stubs/test.stub
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ use Tests\TestCase;

class {{ class }} extends TestCase
{
public function testExample()
use RefreshDatabase;

public function test_example()
{
$response = $this->get('/');

Expand Down
2 changes: 1 addition & 1 deletion stubs/test.unit.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use PHPUnit\Framework\TestCase;

class {{ class }} extends TestCase
{
public function testExample()
public function test_example()
{
$this->assertTrue(true);
}
Expand Down

0 comments on commit 3e58e48

Please sign in to comment.