Last active
February 27, 2023 07:13
-
-
Save Sairahcaz/b27ed6e9e88968c009833e415ee11e3d to your computer and use it in GitHub Desktop.
RefreshDatabaseFast (https://github.com/laracraft-tech/laravel-useful-traits)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* ================== | |
* For Pest - Pest.php | |
* ================== | |
*/ | |
use LaracraftTech\LaravelUsefulTraits\RefreshDatabaseFast; | |
uses(RefreshDatabaseFast::class); | |
it('dose something', function() { | |
//... | |
}); | |
/* | |
* ================== | |
* For PHPUnit | |
* ================== | |
*/ | |
use LaracraftTech\LaravelUsefulTraits\RefreshDatabaseFast; | |
use Tests\TestCase; | |
class MyTest extends TestCase | |
{ | |
use RefreshDatabaseFast; | |
/** @test **/ | |
public function it_does_something() | |
{ | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment