Yii Framework Forum: Unit Testing Controllers - Yii Framework Forum

Jump to content

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

Unit Testing Controllers Rate Topic: -----

#1 User is offline   Vijay Joseph 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 01-November 13

Posted 01 November 2013 - 04:11 PM

I know functional test can be done for Controllers, but would like to know whether Yii has the ability to do Unit testing on the Controllers. I really want to write unit tests for my controllers, but I could not find the right way. If anyone has wrote unit testing for controllers, please share your ideas with me.

I did google search on this topic, but could not find a good example for unit testing.


Appreciate your help!

Note: I don't like the approach to pass values in $_POST as hard coded.
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