diff options
author | w0rp <devw0rp@gmail.com> | 2021-03-20 22:11:22 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2021-03-20 22:11:42 +0000 |
commit | b1d833417bcb57e265e0d01df07b28f463529d4b (patch) | |
tree | 11421aeca89127b0cc9417f8ff4cb0d725199f49 /test/command_callback/test_psalm_command_callbacks.vader | |
parent | 3838ae118d8f05fa1b1be7952a1c8aa3055d6728 (diff) | |
download | ale-b1d833417bcb57e265e0d01df07b28f463529d4b.zip |
#3633 - Put all dummy test files in test/test-files
Diffstat (limited to 'test/command_callback/test_psalm_command_callbacks.vader')
-rw-r--r-- | test/command_callback/test_psalm_command_callbacks.vader | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/test/command_callback/test_psalm_command_callbacks.vader b/test/command_callback/test_psalm_command_callbacks.vader index d32780e6..4edb95c8 100644 --- a/test/command_callback/test_psalm_command_callbacks.vader +++ b/test/command_callback/test_psalm_command_callbacks.vader @@ -16,13 +16,13 @@ Execute(The default executable path should be correct): \ ale#Escape('psalm') . ' --language-server' Execute(Vendor executables should be detected): - call ale#test#SetFilename('psalm-project/test.php') + call ale#test#SetFilename('../test-files/psalm/test.php') AssertLinter - \ ale#path#Simplify(g:dir . '/psalm-project/vendor/bin/psalm'), + \ ale#path#Simplify(g:dir . '/../test-files/psalm/vendor/bin/psalm'), \ ale#Escape(ale#path#Simplify( \ g:dir - \ . '/psalm-project/vendor/bin/psalm' + \ . '/../test-files/psalm/vendor/bin/psalm' \ )) . ' --language-server' let g:ale_php_psalm_use_global = 1 @@ -36,25 +36,3 @@ Execute(User provided options should be used): AssertLinter 'psalm', \ ale#Escape('psalm') \ . ' --language-server --my-user-provided-option my-value' - -Execute(The project path should be correct for .git directories): - call ale#test#SetFilename('psalm-project/test.php') - let g:matched = 0 - - for g:i in range(4) - if !isdirectory(g:dir . '/.git') - call mkdir(g:dir . '/.git') - endif - - try - AssertLSPProject g:dir - catch /.+/ - endtry - - let g:matched = 1 - break - endfor - - if !g:matched - AssertLSPProject g:dir - endif |