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

JErrorPage Testing #6547

Merged
merged 2 commits into from May 14, 2015
Merged

JErrorPage Testing #6547

merged 2 commits into from May 14, 2015

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Mar 22, 2015

Cleans up some of the internals of JErrorPage to improve testability and creates a test case for it.

Testing Instructions

Trigger an error page, it still renders right

$output = ob_get_clean();

// Validate the <title> element was set correctly
$this->assertNotFalse(strpos($output, '<title>500 - Testing JErrorPage::render()</title>'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it not be better to use assertContains. PHPUnit documentation says that it should work for string within a string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

@wilsonge wilsonge added this to the Joomla! 3.4.2 milestone May 14, 2015
wilsonge added a commit that referenced this pull request May 14, 2015
@wilsonge wilsonge merged commit b92729c into joomla:staging May 14, 2015
@mbabker mbabker deleted the JErrorPageTesting branch May 14, 2015 12:30
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

3 participants