Skip to content
Permalink
Browse files

Add test

  • Loading branch information...
dereuromark committed Feb 1, 2016
1 parent 04b2474 commit a09bac02c6d2b55f6cb9e77bbede2367d0717c08
Showing with 20 additions and 2 deletions.
  1. +2 −0 src/Shell/PluginShell.php
  2. +18 −2 tests/TestCase/Shell/PluginShellTest.php
@@ -35,6 +35,8 @@ class PluginShell extends Shell
];
/**
* Displays all currently loaded plugins.
*
* @return void
*/
public function loaded()
@@ -14,8 +14,7 @@
*/
namespace Cake\Test\TestCase\Shell;
use Cake\Cache\Cache;
use Cake\Datasource\ConnectionManager;
use Cake\Core\Plugin;
use Cake\Shell\PluginShell;
use Cake\TestSuite\TestCase;
@@ -51,4 +50,21 @@ public function testGetOptionParser()
$this->assertArrayHasKey('load', $commands);
$this->assertArrayHasKey('assets', $commands);
}
/**
* Tests that list of loaded plugins is shown with loaded command.
*
* @return void
*/
public function testLoaded()
{
$array = Plugin::loaded();
$this->io->expects($this->at(0))
->method('out')
->with($array);
$this->shell->loaded();
}
}

0 comments on commit a09bac0

Please sign in to comment.
You can’t perform that action at this time.