Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / composer / installers / tests / Composer / Installers / Test / InstallerTest.php
index 91a303a1d8b1616abdc7f8c6b2d7d53b2d95ae89..75b402b640f11940c9bcbf20cfd688e7e665170a 100644 (file)
@@ -123,7 +123,12 @@ class InstallerTest extends TestCase
             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),
             array('fuel-package', true),
             array('fuel-theme', true),
@@ -138,12 +143,18 @@ class InstallerTest extends TestCase
             array('kanboard-plugin', true),
             array('kirby-plugin', true),
             array('kohana-module', true),
+            array('lms-plugin', true),
+            array('lms-template', true),
+            array('lms-document-template', true),
+            array('lms-userpanel-module', true),
             array('laravel-library', true),
             array('lavalite-theme', true),
             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),
@@ -157,6 +168,8 @@ class InstallerTest extends TestCase
             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),
@@ -192,6 +205,7 @@ class InstallerTest extends TestCase
             array('tusk-asset', true),
             array('typo3-flow-plugin', true),
             array('typo3-cms-extension', true),
+            array('userfrosting-sprinkle', true),
             array('vanilla-plugin', true),
             array('vanilla-theme', true),
             array('whmcs-gateway', true),
@@ -207,6 +221,9 @@ class InstallerTest extends TestCase
             array('phifty-bundle', true),
             array('phifty-library', true),
             array('phifty-framework', true),
+            array('osclass-plugin', true),
+            array('osclass-theme', true),
+            array('osclass-language', true),
         );
     }
 
@@ -267,11 +284,16 @@ class InstallerTest extends TestCase
             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'),
             array('ee2-theme', 'themes/third_party/ee_package/', 'author/ee_package'),
+            array('ezplatform-assets', 'web/assets/ezplatform/ezplatform_comp/', 'author/ezplatform_comp'),
+            array('ezplatform-meta-assets', 'web/assets/ezplatform/', 'author/ezplatform_comp'),
             array('fuel-module', 'fuel/app/modules/module/', 'fuel/module'),
             array('fuel-package', 'fuel/packages/orm/', 'fuel/orm'),
             array('fuel-theme', 'fuel/app/themes/theme/', 'fuel/theme'),
@@ -286,11 +308,21 @@ class InstallerTest extends TestCase
             array('kanboard-plugin', 'plugins/my_plugin/', 'shama/my_plugin'),
             array('kirby-plugin', 'site/plugins/my_plugin/', 'shama/my_plugin'),
             array('kohana-module', 'modules/my_package/', 'shama/my_package'),
+            array('lms-plugin', 'plugins/MyPackage/', 'shama/MyPackage'),
+            array('lms-plugin', 'plugins/MyPackage/', 'shama/my_package'),
+            array('lms-template', 'templates/MyPackage/', 'shama/MyPackage'),
+            array('lms-template', 'templates/MyPackage/', 'shama/my_package'),
+            array('lms-document-template', 'documents/templates/MyPackage/', 'shama/MyPackage'),
+            array('lms-document-template', 'documents/templates/MyPackage/', 'shama/my_package'),
+            array('lms-userpanel-module', 'userpanel/modules/MyPackage/', 'shama/MyPackage'),
+            array('lms-userpanel-module', 'userpanel/modules/MyPackage/', 'shama/my_package'),
             array('laravel-library', 'libraries/my_package/', 'shama/my_package'),
             array('lavalite-theme', 'public/themes/my_theme/', 'shama/my_theme'),
-            array('lavalite-package', 'packages/my_package/', 'shama/my_package'),
+            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'),
@@ -312,6 +344,10 @@ class InstallerTest extends TestCase
             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'),
@@ -351,6 +387,7 @@ class InstallerTest extends TestCase
             array('typo3-flow-package', 'Packages/Application/my_package/', 'shama/my_package'),
             array('typo3-flow-build', 'Build/my_package/', 'shama/my_package'),
             array('typo3-cms-extension', 'typo3conf/ext/my_extension/', 'shama/my_extension'),
+            array('userfrosting-sprinkle', 'app/sprinkles/my_sprinkle/', 'shama/my_sprinkle'),
             array('vanilla-plugin', 'plugins/my_plugin/', 'shama/my_plugin'),
             array('vanilla-theme', 'themes/my_theme/', 'shama/my_theme'),
             array('whmcs-gateway', 'modules/gateways/gateway_name/', 'vendor/gateway_name'),
@@ -366,6 +403,9 @@ class InstallerTest extends TestCase
             array('phifty-library', 'libraries/my-lib/', 'shama/my-lib'),
             array('phifty-framework', 'frameworks/my-framework/', 'shama/my-framework'),
             array('yawik-module', 'module/MyModule/', 'shama/my_module'),
+            array('osclass-plugin', 'oc-content/plugins/sample_plugin/', 'test/sample_plugin'),
+            array('osclass-theme', 'oc-content/themes/sample_theme/', 'test/sample_theme'),
+            array('osclass-language', 'oc-content/languages/sample_lang/', 'test/sample_lang'),
         );
     }
 
@@ -501,7 +541,7 @@ class InstallerTest extends TestCase
         $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));