? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
15 Mar 2015

There is a small change to allow the application object to be injected in to allow unit tests this can be tested easily by just navigating around Joomla.

Finally as per the doc block I've typecast the result to be a boolean as it was returning the string 0 on false and 1 on true for the enabled state of the plugin (as these are the values stored in the database). Currently you get true and false in the frontend and 0 and 1 in the backend.

Testing

All the routing in the frontend depends on this class so navigate around and ensure that with plugin enabled and disabled everything works as expected.

In the backend ensure that the modal views when you are selecting a single item in the menu show everything properly

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 - 17 Mar 2015
Category Unit Tests
avatar Hackwar
Hackwar - comment - 17 Mar 2015

Looks good. This test brings up 2 issues for me: JLanguageMultilang couples a multi-lang implementation to our language filter plugin and it shows that our language implementation is pretty hacked together... This class is pretty much just bloat. A proper implementation would read that from some general storage and a proper languagefilter implementation would set that flag regardless of the app that is currently running.

avatar wilsonge wilsonge - close - 17 Mar 2015
avatar wilsonge
wilsonge - comment - 17 Mar 2015

Replaced by #6479 which removes the application injection

avatar wilsonge wilsonge - change - 17 Mar 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-03-17 21:42:19
avatar wilsonge wilsonge - close - 17 Mar 2015
avatar wilsonge wilsonge - head_ref_deleted - 17 Mar 2015

Add a Comment

Login with GitHub to post a comment