-
Notifications
You must be signed in to change notification settings - Fork 7
allow gf (go to file) command also for __() method #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -405,9 +405,12 @@ Expect (class template): | |
|
||
namespace App\Models; | ||
|
||
class Example | ||
use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Example extends Model | ||
{ | ||
// | ||
use HasFactory; | ||
} | ||
|
||
Execute (edit notification): | ||
|
@@ -462,3 +465,27 @@ Execute (edit routes): | |
|
||
Expect (generic template): | ||
<?php | ||
|
||
Before (blade file with __() function): | ||
tabedit test/fixtures/laravel-8/resources/views/viewfile.blade.php | ||
|
||
Do (Move to (a)uth.failed, jump to translation file): | ||
i{{ __('auth.failed') }}\<Esc>0fagf | ||
|
||
Execute: | ||
AssertEqual expand('%'), 'resources/lang/auth.php' | ||
Comment on lines
+472
to
+476
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's good to exercise the
|
||
|
||
After (clean up buffer): | ||
bdelete | ||
|
||
Before (blade file with trans() function): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My understanding is that |
||
tabedit test/fixtures/laravel-8/resources/views/viewfile2.blade.php | ||
|
||
Do (Move to (a)uth.failed, jump to translation file): | ||
i{{ trans('auth.failed') }}\<Esc>0fafagf | ||
|
||
Execute: | ||
AssertEqual expand('%'), 'resources/lang/auth.php' | ||
|
||
After (clean up buffer): | ||
bdelete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move these new tests to their own test file,
tests/goto.vader
(matching the autoload script name), since we're testing a different type of functionality.