Skip to content
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

Merged
merged 5 commits into from
Aug 5, 2016
Merged

Email cloaking unit tests #11462

merged 5 commits into from
Aug 5, 2016

Conversation

PhilETaylor
Copy link
Contributor

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 **

Phil Taylor added 2 commits August 4, 2016 22:56
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');
Copy link
Contributor

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

Copy link
Contributor

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.

@wilsonge
Copy link
Contributor

wilsonge commented Aug 4, 2016

Love it!

@PhilETaylor

This comment was marked as abuse.

@brianteeman
Copy link
Contributor

Hope these links help to collect a list of scenario to test

https://github.com/joomla/joomla-cms/pull/4182#issuecomment-53395318
https://github.com/joomla/joomla-cms/pull/3735#issue-35215540

@PhilETaylor

This comment was marked as abuse.

@PhilETaylor

This comment was marked as abuse.

@wilsonge wilsonge merged commit f282742 into joomla:staging Aug 5, 2016
@wilsonge
Copy link
Contributor

wilsonge commented Aug 5, 2016

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!!

@wilsonge wilsonge added this to the Joomla 3.6.3 milestone Aug 5, 2016
@PhilETaylor

This comment was marked as abuse.

roland-d pushed a commit to roland-d/joomla-cms that referenced this pull request Sep 11, 2016
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants