Search the Community
Showing results for tags 'processwire unit test'.
Found 1 result
Hi All, I am trying to include the unit tests into our project which is in Processwire(I love it). Directory structure for the same will be shown below Here PWTestCase.php is the parent file where it is getting inherited from the PHPUNIT framework TestCase class and It is in same namespace ProcessWire; as shown below Now I have a basic unit test(FuncTest.php as shown below) to check the language calling the function getLanguage() residing in site/templates/_func.php. ***when try to run this test, getting undefined function getLanguage as shown below*** Since I am using namespace ProcessWire; & bootstraping processwire in PWTestCase why i am not able to access functions? Can you please suggest where i am going wrong? Thanks in advance.