Unit Test Url::to


(Xicond) #1

Hi all, anyone know how to test Url::to in codecept unit test ?

any example ?


(Alirz23) #2

I don’t know why would you want to test Url::to, I advise against writing tests for code that is not part of your application.


(Xicond) #3

Actually the one I need to test is not the Url::to but functional of the url_rule, is the url rule array I applied is in good pattern and sequence

how’s the best practice to do that ?