User tests: Successful: Unsuccessful:
Regardless of what we do with JView, we should finally remove the deprecated code from JViewLegacy, that has been sitting there deprecated since 1.6...
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Components Libraries |
Labels |
Added:
?
|
I have no idea why the JApplicationWeb tests now fail with this latest change. (moving the tests into the other folder.)
My guess is something in the moved tests that changes global state and doesn't reset things. A far too common problem with our test suite.
Probably those lines. Instead of restoring the state of $_SERVER
after the test it's just setting the values if not previously set.
Funny, the issue is JPATH_COMPONENT. If it is defined, it fails, if it is not, the JApplicationWeb works fine. Of course JViewLegacy then fails spectacularly... I have no idea what is depending on JPATH_COMPONENT not being defined.
JViewLegacy
only needs JPATH_COMPONENT
if it's instantiated without a base_path
parameter in the config array. So change the tests to inject that and you can get around needing the constant?
Unfortunately doesn't work. It seems as if it is not the issue of the JPATH_COMPONENT constant, but something that is executed in the tests afterwards. I simply commented out the define() for JPATH_COMPONENT and that threw a bunch of errors and actually stopped the JViewLegacy tests. Now I've rewritten those and don't get the JPATH_COMPONENT errors, but get the other 2 failures again.
Found the issue. JUri::base() throws this of...
Fixed it. JUri::reset() in tearDown() fixes this.
For those unit tests fixes can we put them into staging? Because that's just good practice anyhow. I'm happy to merge a PR with just those changes in on review
The unittests in 3.7 are somehow funky, so to be honest, I don't really want to mess around there...
Then you shoulda started from the 3.7 branch. My office will have a drink
in memory of your sanity when you have to merge that.
On Monday, October 3, 2016, George Wilson notifications@github.com wrote:
I've also done a PR for the newsfeed change to staging #12296
#12296I'm trying to keep things in sync as best I can for my sanity in the
future when i'm solving conflicts xD—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#12263 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfofZY6ocLwj3Go8cPlbzRhXPa-ezrks5qwYSOgaJpZM4KMEMm
.
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-10-04 20:44:32 |
Closed_By | ⇒ | wilsonge |
I've decided to move the JView* classes from /libraries/legacy to /libraries/cms, too.