File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -465,3 +465,27 @@ Execute (edit routes):
465465
466466Expect (generic template):
467467 <?php
468+
469+ Before (blade file with __() function):
470+ tabedit test/fixtures/laravel-8/resources/views/viewfile.blade.php
471+
472+ Do (Move to (a)uth.failed, jump to translation file):
473+ i{{ __('auth.failed') }}\<Esc>0fagf
474+
475+ Execute:
476+ AssertEqual expand('%'), 'resources/lang/auth.php'
477+
478+ After (clean up buffer):
479+ bdelete
480+
481+ Before (blade file with trans() function):
482+ tabedit test/fixtures/laravel-8/resources/views/viewfile2.blade.php
483+
484+ Do (Move to (a)uth.failed, jump to translation file):
485+ i{{ trans('auth.failed') }}\<Esc>0fafagf
486+
487+ Execute:
488+ AssertEqual expand('%'), 'resources/lang/auth.php'
489+
490+ After (clean up buffer):
491+ bdelete
You can’t perform that action at this time.
0 commit comments