Skip to content

Conversation

@wilsonge
Copy link
Contributor

@wilsonge wilsonge commented May 2, 2014

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33688&start=0

We need to grab the JRouterSite/JRouterAdministrator object in various places in Joomla. And currently the function is a static function. But we're not calling it statically - and with the PHPUnit upgrade travis has just done that's suddenly become important as we can't mock the static methods. So we now must call this correctly for the unit tests to function (see #3550)

Testing

  • Check that routing in frontend & backend still work (SEF URLs on & off)
  • Check the com_finder frontend search view still works and generates the correct URLS
  • Check internal links (that would use JRoute) work as expected. i.e. going from category view to single article view.
  • Check login module redirection url works
  • Check language filter plugin still works

@wilsonge wilsonge changed the title getRouter is a static method [#33688] JApplicationCms::getRouter is a static method May 2, 2014
@wilsonge wilsonge mentioned this pull request May 2, 2014
@zero-24
Copy link
Contributor

zero-24 commented May 2, 2014

  1. routing BE and FE works good here (SEF on and off)
  2. com_finder works here as bevor (SEF on and off)
  3. internal links works ok. (category blog --> single article, category list --> single article) (SEF on and off)
  4. login and logout redirection ok here. (SEF on and off)

@wilsonge how can i check the language filter plugin?

@wilsonge
Copy link
Contributor Author

wilsonge commented May 2, 2014

You'll need to install and second language and enable the plugin and check the URLs in both languages work as it did pre-patch - because that adds it's own build + parse rules to the routing

@infograf768
Copy link
Member

OK, here, including in multilang

@infograf768
Copy link
Member

@maintainers
This PR is just for testing. The PR #3550 contains this one.

@Bakual Bakual closed this in e07b96f May 5, 2014
@wilsonge wilsonge deleted the patch-21 branch May 5, 2014 14:12
@Bakual
Copy link
Contributor

Bakual commented May 5, 2014

This PR is just for testing. The PR #3550 contains this one.

@infograf768 Merged this one so the unit tests are in a separate commit. Had a conversation with @wilsonge over it 😃

Bakual pushed a commit to Bakual/joomla-cms that referenced this pull request May 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants