From 0a0dcf913251dd4c530658cda5aaed87718b9a02 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 30 Jan 2024 14:50:45 +0100 Subject: [PATCH] Apply TYPO3 testing setup only to TYPO3 itself Also add setup for functional tests --- .../neovim/configuration/ftdetect/folder_typo3.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home/programs/neovim/configuration/ftdetect/folder_typo3.vim b/home/programs/neovim/configuration/ftdetect/folder_typo3.vim index 07082e9..6cc300a 100644 --- a/home/programs/neovim/configuration/ftdetect/folder_typo3.vim +++ b/home/programs/neovim/configuration/ftdetect/folder_typo3.vim @@ -1,6 +1,7 @@ augroup typo3Folder autocmd! - autocmd BufEnter **/stuff/typo3/**/Unit/** execute "call Typo3SetupPhpUnitUnit()" + autocmd BufEnter **/stuff/typo3/core/**/Unit/** execute "call Typo3SetupPhpUnitUnit()" + autocmd BufEnter **/stuff/typo3/core/**/Functional/** execute "call Typo3SetupPhpUnitFunctional()" augroup END function! Typo3SetupPhpUnitUnit() @@ -9,3 +10,10 @@ function! Typo3SetupPhpUnitUnit() \ 'nearest': '--configuration Build/phpunit/UnitTests.xml', \} endfunction + +function! Typo3SetupPhpUnitFunctional() + let g:test#php#phpunit#options = { + \ 'file': '--configuration Build/phpunit/FunctionalTests.xml', + \ 'nearest': '--configuration Build/phpunit/FunctionalTests.xml', + \} +endfunction