Lithium test dashboard is not displaying my new test case controller

StackOverflow https://stackoverflow.com/questions/22839394

  •  27-06-2023
  •  | 
  •  

سؤال

I have added new test controller [buyControllerTest.php] under app\tests\cases\controllers but with some reason I am not able to see it's listing on test dashboard !.

Is it something to do with cache?

log say

 Class 'app\tests\cases\controllers\buyControllerTest' not found in /my-path/libraries/lithium/test/Dispatcher.php

Regards

هل كانت مفيدة؟

المحلول

Try capitalizing your class name and filename to "BuyControllerTest". That is the format Lithium expects.

Also, check your namespace declaration in your file and make sure that matches.

Last, restart your web server. Lithium can cache library paths in APC. If you don't have the APC (or APCu) php extension, then you may delete files in your app/resources/tmp/cache directory to clear the cache.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top