diff vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php	Fri Feb 23 15:51:18 2018 +0000
+++ b/vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php	Fri Feb 23 15:52:07 2018 +0000
@@ -123,7 +123,10 @@
             array('ee2-theme', true),
             array('ee2-addon', true),
             array('elgg-plugin', true),
+            array('eliasis-component', true),
             array('eliasis-module', true),
+            array('eliasis-plugin', true),
+            array('eliasis-template', true),
             array('ezplatform-assets', true),
             array('ezplatform-meta-assets', true),
             array('fuel-module', true),
@@ -149,7 +152,9 @@
             array('lavalite-package', true),
             array('lithium-library', true),
             array('magento-library', true),
+            array('majima-plugin', true),
             array('mako-package', true),
+            array('modx-extra', true),
             array('modxevo-snippet', true),
             array('modxevo-plugin', true),
             array('modxevo-module', true),
@@ -163,6 +168,8 @@
             array('october-module', true),
             array('october-plugin', true),
             array('piwik-plugin', true),
+            array('pxcms-module', true),
+            array('pxcms-theme', true),
             array('phpbb-extension', true),
             array('pimcore-plugin', true),
             array('plentymarkets-plugin', true),
@@ -277,7 +284,10 @@
             array('drupal-profile', 'profiles/my_module/', 'shama/my_module'),
             array('drupal-drush', 'drush/my_module/', 'shama/my_module'),
             array('elgg-plugin', 'mod/sample_plugin/', 'test/sample_plugin'),
+            array('eliasis-component', 'components/my_component/', 'shama/my_component'),
             array('eliasis-module', 'modules/my_module/', 'shama/my_module'),
+            array('eliasis-plugin', 'plugins/my_plugin/', 'shama/my_plugin'),
+            array('eliasis-template', 'templates/my_template/', 'shama/my_template'),
             array('ee3-addon', 'system/user/addons/ee_theme/', 'author/ee_theme'),
             array('ee3-theme', 'themes/user/ee_package/', 'author/ee_package'),
             array('ee2-addon', 'system/expressionengine/third_party/ee_theme/', 'author/ee_theme'),
@@ -311,6 +321,8 @@
             array('lavalite-package', 'packages/my_group/my_package/', 'my_group/my_package'),
             array('lithium-library', 'libraries/li3_test/', 'user/li3_test'),
             array('magento-library', 'lib/foo/', 'test/foo'),
+            array('majima-plugin', 'plugins/MyPlugin/', 'shama/my-plugin'),
+            array('modx-extra', 'core/packages/extra/', 'vendor/extra'),
             array('modxevo-snippet', 'assets/snippets/my_snippet/', 'shama/my_snippet'),
             array('modxevo-plugin', 'assets/plugins/my_plugin/', 'shama/my_plugin'),
             array('modxevo-module', 'assets/modules/my_module/', 'shama/my_module'),
@@ -332,6 +344,10 @@
             array('piwik-plugin', 'plugins/VisitSummary/', 'shama/visit-summary'),
             array('prestashop-module', 'modules/a-module/', 'vendor/a-module'),
             array('prestashop-theme', 'themes/a-theme/', 'vendor/a-theme'),
+            array('pxcms-module', 'app/Modules/Foo/', 'vendor/module-foo'),
+            array('pxcms-module', 'app/Modules/Foo/', 'vendor/pxcms-foo'),
+            array('pxcms-theme', 'themes/Foo/', 'vendor/theme-foo'),
+            array('pxcms-theme', 'themes/Foo/', 'vendor/pxcms-foo'),
             array('phpbb-extension', 'ext/test/foo/', 'test/foo'),
             array('phpbb-style', 'styles/foo/', 'test/foo'),
             array('phpbb-language', 'language/foo/', 'test/foo'),
@@ -525,7 +541,7 @@
         $package = new Package('foo', '1.0.0', '1.0.0');
 
         $installer = $this->getMock('Composer\Installers\Installer', array('getInstallPath'), array($this->io, $this->composer));
-        $installer->expects($this->once())->method('getInstallPath')->with($package)->will($this->returnValue(sys_get_temp_dir().'/foo'));
+        $installer->expects($this->atLeastOnce())->method('getInstallPath')->with($package)->will($this->returnValue(sys_get_temp_dir().'/foo'));
 
         $repo = $this->getMock('Composer\Repository\InstalledRepositoryInterface');
         $repo->expects($this->once())->method('hasPackage')->with($package)->will($this->returnValue(true));