User tests: Successful: Unsuccessful:
Don't use autoloader if you want to include 'router.php' manually
Excluding router autoloader as Joomla have no in itself.
Issues can appear on case insensitive file systems as autoloader can try to load 'Router.php' according to passed 'ComponentRouter'.
If file would be found but without class in it there is gonna be Fatal error as Joomla requires 'router.php'.
And on case insensitive system it will lead to file loaded twice.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Follow the link to the tests on travis then look at one of the failed versions such as this link
https://travis-ci.org/joomla/joomla-cms/jobs/195243081
1) JRouterSiteTest::testGetComponentRouter
Failed asserting that JComponentRouterLegacy Object (...) is an instance of class "SearchRouter".
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/cms/router/JRouterSiteTest.php:1347
Seems something in your change has broken the code result of the object being an instance of class "SearchRouter".
@photodude Yes, but by what means?
It's just it's modification inside method and is not causing SearchRouter not to load...
Try some general Unit testing debugging on Travis (or just do the same step 2/3 items in your local and run PHP unit from the command line)
Title |
|
It's really isn't ready for tests yet as I've ended up with tests fail that was unclear to me and seems that time I had no moment to investigate this. So It's marked as work in progress.
I will add test instructions and common used way to reproduce as soon as possible.
It's just it's modification inside method and is not causing SearchRouter not to load...
@alex7r, It's how the unit test tests this method see this
https://github.com/joomla/joomla-cms/blob/master/tests/unit/suites/libraries/cms/router/JRouterSiteTest.php#L1319-L1355
Labels |
Added:
?
|
It has been over six months the since this wip pr was created/updated . I am closing this at this time. It can always be reopened when updated.
@brianteeman close Issue?
Seems like it more 3rd party issue than the Joomla after deep testing, so for now let's ignore this.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-09 18:41:27 |
Closed_By | ⇒ | alex7r |
Can somebody explain why build is failed?