-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email cloaking unit tests #11462
Email cloaking unit tests #11462
Conversation
Further work forked from #4071
JFactory::$session = $this->getMockSession(); | ||
|
||
// force the cloak JS inline so that we can unit test it easier than messing with script head in document | ||
JFactory::getApplication()->input->server->set('HTTP_X_REQUESTED_WITH', 'xmlhttprequest'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will probably fail as you have a mock JApplicationCms
object rather than the real thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Love it! |
This comment was marked as abuse.
This comment was marked as abuse.
Hope these links help to collect a list of scenario to test
|
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
As this doesn't affect any production code I'm merging this to run with it over the weekend. Thanks for picking up on that old code Phil!! |
This comment was marked as abuse.
This comment was marked as abuse.
* Unit Test init for Email Cloaking Further work forked from joomla#4071 * Example assertions * Tidy up, documentation * Implement a JS to HTML converter to allow easy unit testing of outputs * Add test for joomla#11378 as an example & more documentation
This is a fork/rebase/redoing of the great work started by @wilsonge in #4071
**incomplete - but creating the PR so that travis can start to churn the tests **