Skip to content

Commit e81f7d7

Browse files
author
Herbert Maschke
committed
first attempt to add test to 'go to translation file'
1 parent f804d8f commit e81f7d7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/navigation.vader

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,27 @@ Execute (edit routes):
465465

466466
Expect (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 __() 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

0 commit comments

Comments
 (0)