rename LoadedPluginInformation to ComposerPluginInformation.
This commit is contained in:
parent
1f42741623
commit
6b2d0aebf1
|
@ -11,7 +11,7 @@ namespace PHPCI\Controller;
|
|||
|
||||
use b8;
|
||||
use PHPCI\Model\Build;
|
||||
use PHPCI\Plugin\Util\LoadedPluginInformation;
|
||||
use PHPCI\Plugin\Util\ComposerPluginInformation;
|
||||
|
||||
/**
|
||||
* Plugin Controller - Provides support for installing Composer packages.
|
||||
|
@ -63,7 +63,7 @@ class PluginController extends \PHPCI\Controller
|
|||
$this->view->installedPackages = $json['require'];
|
||||
$this->view->suggestedPackages = $json['suggest'];
|
||||
|
||||
$pluginInfo = LoadedPluginInformation::buildFromYaml(
|
||||
$pluginInfo = ComposerPluginInformation::buildFromYaml(
|
||||
PHPCI_DIR . "vendor/composer/installed.json"
|
||||
);
|
||||
$this->view->plugins = $pluginInfo->getInstalledPlugins();
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace PHPCI\Plugin\Util;
|
||||
|
||||
|
||||
class LoadedPluginInformation
|
||||
class ComposerPluginInformation
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
|
@ -17,7 +17,7 @@ class LoadedPluginInformation
|
|||
|
||||
/**
|
||||
* @param string $filePath The path of installed.json created by composer.
|
||||
* @return LoadedPluginInformation
|
||||
* @return ComposerPluginInformation
|
||||
*/
|
||||
public static function buildFromYaml($filePath)
|
||||
{
|
|
@ -2,18 +2,18 @@
|
|||
|
||||
namespace PHPCI\Plugin\Tests\Util;
|
||||
|
||||
use PHPCI\Plugin\Util\LoadedPluginInformation;
|
||||
use PHPCI\Plugin\Util\ComposerPluginInformation;
|
||||
|
||||
class LoadedPluginInformationTest extends \PHPUnit_Framework_TestCase
|
||||
class ComposerPluginInformationTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var LoadedPluginInformation
|
||||
* @var ComposerPluginInformation
|
||||
*/
|
||||
protected $testedInformation;
|
||||
|
||||
protected function setUpFromFile($file)
|
||||
{
|
||||
$this->testedInformation = LoadedPluginInformation::buildFromYaml($file);
|
||||
$this->testedInformation = ComposerPluginInformation::buildFromYaml($file);
|
||||
}
|
||||
|
||||
protected function phpciSetup()
|
||||
|
@ -27,7 +27,7 @@ class LoadedPluginInformationTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$this->phpciSetup();
|
||||
$this->assertInstanceOf(
|
||||
'\PHPCI\Plugin\Util\LoadedPluginInformation',
|
||||
'\PHPCI\Plugin\Util\ComposerPluginInformation',
|
||||
$this->testedInformation
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue