mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 18:14:01 +08:00
#3633 - Put all dummy test files in test/test-files
This commit is contained in:
@@ -16,22 +16,22 @@ After:
|
||||
|
||||
|
||||
Execute(project with php-cs-fixer should use local by default):
|
||||
call ale#test#SetFilename('php_paths/project-with-php-cs-fixer/test.php')
|
||||
call ale#test#SetFilename('../test-files/php/project-with-php-cs-fixer/test.php')
|
||||
|
||||
AssertEqual
|
||||
\ ale#path#Simplify(g:dir . '/php_paths/project-with-php-cs-fixer/vendor/bin/php-cs-fixer'),
|
||||
\ ale#path#Simplify(g:dir . '/../test-files/php/project-with-php-cs-fixer/vendor/bin/php-cs-fixer'),
|
||||
\ ale#fixers#php_cs_fixer#GetExecutable(bufnr(''))
|
||||
|
||||
Execute(use-global should override local detection):
|
||||
let g:ale_php_cs_fixer_use_global = 1
|
||||
call ale#test#SetFilename('php_paths/project-with-php-cs-fixer/test.php')
|
||||
call ale#test#SetFilename('../test-files/php/project-with-php-cs-fixer/test.php')
|
||||
|
||||
AssertEqual
|
||||
\ 'php-cs-fixer',
|
||||
\ ale#fixers#php_cs_fixer#GetExecutable(bufnr(''))
|
||||
|
||||
Execute(project without php-cs-fixer should use global):
|
||||
call ale#test#SetFilename('php_paths/project-without-php-cs-fixer/test.php')
|
||||
call ale#test#SetFilename('../test-files/php/project-without-php-cs-fixer/test.php')
|
||||
|
||||
AssertEqual
|
||||
\ 'php-cs-fixer',
|
||||
@@ -41,7 +41,7 @@ Execute(project without php-cs-fixer should use global):
|
||||
|
||||
|
||||
Execute(The php-cs-fixer callback should return the correct default values):
|
||||
call ale#test#SetFilename('php_paths/project-without-php-cs-fixer/foo/test.php')
|
||||
call ale#test#SetFilename('../test-files/php/project-without-php-cs-fixer/foo/test.php')
|
||||
|
||||
AssertEqual
|
||||
\ {
|
||||
@@ -54,7 +54,7 @@ Execute(The php-cs-fixer callback should return the correct default values):
|
||||
|
||||
Execute(The php-cs-fixer callback should include custom php-cs-fixer options):
|
||||
let g:ale_php_cs_fixer_options = '--config="$HOME/.php_cs"'
|
||||
call ale#test#SetFilename('php_paths/project-without-php-cs-fixer/test.php')
|
||||
call ale#test#SetFilename('../test-files/php/project-without-php-cs-fixer/test.php')
|
||||
|
||||
AssertEqual
|
||||
\ {
|
||||
|
||||
Reference in New Issue
Block a user