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

Improving JModuleHelper::getModule() test #6492

Merged
merged 2 commits into from Mar 19, 2015
Merged

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Mar 18, 2015

See title


$module = JModuleHelper::getModule('mod_false');

$this->assertTrue(is_object($module), 'No object was returned');
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 assertInternalType for this?

@Hackwar
Copy link
Member Author

Hackwar commented Mar 19, 2015

Updated to use assertInternalType like @wilsonge proposed.

wilsonge added a commit that referenced this pull request Mar 19, 2015
Improving JModuleHelper::getModule() test
@wilsonge wilsonge merged commit 7e4a4c9 into joomla:staging Mar 19, 2015
@wilsonge wilsonge added this to the Joomla! 3.4.1 milestone Mar 19, 2015
@spignataro
Copy link
Contributor

FYI - this test has some incorrect language.

There anonymous module should have no id

should be:

The anonymous module should have no id

and

There anonymous module should have the given name

should be

The anonymous module should have the given name

@zero-24
Copy link
Member

zero-24 commented Mar 22, 2015

@spignataro
Copy link
Contributor

Done: #6572

@Hackwar Hackwar deleted the patch-45 branch January 6, 2016 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants