Yii Framework Forum: Unit Test Url::to - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unit Test Url::to Anyone know how to test Url::to in codecept unit test ?

#1 User is offline   xicond 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 43
  • Joined: 06-October 12

Posted 20 November 2017 - 11:23 PM

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

#2 User is offline   alrazi 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,494
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 21 November 2017 - 12:03 AM

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.
0

#3 User is offline   xicond 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 43
  • Joined: 06-October 12

Posted 26 November 2017 - 08:33 PM

View Postalrazi, on 21 November 2017 - 12:03 AM, said:

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.


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 ?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users