Skip to content

Commit

Permalink
Split up the tests for JPluginHelper::getPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Mar 24, 2015
1 parent 843a247 commit 045dca5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/unit/suites/libraries/cms/plugin/JPluginHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function testGetLayoutPath()
* @return void
*
* @since 3.2
* @covers JPluginHelper::getPlugin
*/
public function testGetPlugin()
{
Expand All @@ -97,7 +98,18 @@ public function testGetPlugin()
'loadmodule',
'plg_content_loadmodule should return loadmodule as the name'
);

}

/**
* Test JPluginHelper::getPlugin with a whole plugin group
*
* @return void
*
* @since 3.2
* @covers JPluginHelper::getPlugin
*/
public function testGetPluginGroup()
{
$plugins = JPluginHelper::getPlugin('content');
$this->assertInternalType('array', $plugins, 'Method should return all plugins in a group');
$this->assertEquals(7, count($plugins), 'Method should return all plugins in a group');
Expand Down

0 comments on commit 045dca5

Please sign in to comment.