oni-php: Add snippet for test class
This commit is contained in:
parent
097630b001
commit
d8468edadc
1 changed files with 15 additions and 0 deletions
15
oni-php/snippets/php-mode/test-class
Normal file
15
oni-php/snippets/php-mode/test-class
Normal file
|
@ -0,0 +1,15 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: test-class
|
||||
# key: test
|
||||
# --
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ${1:`(file-name-sans-extension (file-name-nondirectory (buffer-file-name)))`} extends TestCase
|
||||
{
|
||||
use RefreshDatabase, WithFaker;
|
||||
|
||||
$0
|
||||
}
|
Loading…
Reference in a new issue