? ? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
15 Mar 2015

Reworks the JControllerLegacy tests. This uses the @testdox tags that we are rolling out across Joomla and also breaks up the 11 parts of the setRedirect into separate tests. Finally I've added a test for injecting the controller name in the controller

avatar wilsonge wilsonge - open - 15 Mar 2015
avatar joomla-cms-bot joomla-cms-bot - change - 15 Mar 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 15 Mar 2015
Category Unit Tests
avatar zero-24
zero-24 - comment - 15 Mar 2015

@wilsonge do we need to test here or only need travis pass the tests?

avatar wilsonge
wilsonge - comment - 15 Mar 2015

Just travis - I'm not touching core at all

avatar SniperSister
SniperSister - comment - 15 Mar 2015

A few comments:

  • personally I would prefer "speaking" test names instead of names like test__construct()
  • testCreateFileName() could be simplified by using a data provider
  • setRedirect() could also be simplified by using a data provider, but using separate tests is fine for me too

All in all: good job! :)

avatar zero-24 zero-24 - change - 15 Mar 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 15 Mar 2015

Thanks @wilsonge moving to RTC since Travis is happy with you here :smile:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6441.
avatar zero-24 zero-24 - change - 15 Mar 2015
Status Ready to Commit Pending
avatar zero-24
zero-24 - comment - 15 Mar 2015

moving back to pending as we have feedback by @SniperSister and @mbabker


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6441.
avatar wilsonge
wilsonge - comment - 15 Mar 2015

@SniperSister the setRedirect method is pretty hard to do via a data provider because half the tests also involve the setMessage method and how they override each other.

avatar SniperSister
SniperSister - comment - 15 Mar 2015

@wilsonge oh yeah, true. Well, then let's just keep them as separate tests.

avatar mbabker mbabker - change - 15 Mar 2015
Milestone Added:
avatar mbabker mbabker - change - 15 Mar 2015
Labels Added: ?
avatar mbabker
mbabker - comment - 15 Mar 2015

Merged via a9a77da

avatar wilsonge wilsonge - change - 15 Mar 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-03-15 15:49:15
avatar wilsonge wilsonge - close - 15 Mar 2015
avatar wilsonge wilsonge - close - 15 Mar 2015
avatar wilsonge wilsonge - head_ref_deleted - 15 Mar 2015

Add a Comment

Login with GitHub to post a comment