Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
121 array('ee3-theme', true), | 121 array('ee3-theme', true), |
122 array('ee3-addon', true), | 122 array('ee3-addon', true), |
123 array('ee2-theme', true), | 123 array('ee2-theme', true), |
124 array('ee2-addon', true), | 124 array('ee2-addon', true), |
125 array('elgg-plugin', true), | 125 array('elgg-plugin', true), |
126 array('eliasis-component', true), | |
126 array('eliasis-module', true), | 127 array('eliasis-module', true), |
128 array('eliasis-plugin', true), | |
129 array('eliasis-template', true), | |
127 array('ezplatform-assets', true), | 130 array('ezplatform-assets', true), |
128 array('ezplatform-meta-assets', true), | 131 array('ezplatform-meta-assets', true), |
129 array('fuel-module', true), | 132 array('fuel-module', true), |
130 array('fuel-package', true), | 133 array('fuel-package', true), |
131 array('fuel-theme', true), | 134 array('fuel-theme', true), |
147 array('laravel-library', true), | 150 array('laravel-library', true), |
148 array('lavalite-theme', true), | 151 array('lavalite-theme', true), |
149 array('lavalite-package', true), | 152 array('lavalite-package', true), |
150 array('lithium-library', true), | 153 array('lithium-library', true), |
151 array('magento-library', true), | 154 array('magento-library', true), |
155 array('majima-plugin', true), | |
152 array('mako-package', true), | 156 array('mako-package', true), |
157 array('modx-extra', true), | |
153 array('modxevo-snippet', true), | 158 array('modxevo-snippet', true), |
154 array('modxevo-plugin', true), | 159 array('modxevo-plugin', true), |
155 array('modxevo-module', true), | 160 array('modxevo-module', true), |
156 array('modxevo-template', true), | 161 array('modxevo-template', true), |
157 array('modxevo-lib', true), | 162 array('modxevo-lib', true), |
161 array('modulework-module', true), | 166 array('modulework-module', true), |
162 array('moodle-mod', true), | 167 array('moodle-mod', true), |
163 array('october-module', true), | 168 array('october-module', true), |
164 array('october-plugin', true), | 169 array('october-plugin', true), |
165 array('piwik-plugin', true), | 170 array('piwik-plugin', true), |
171 array('pxcms-module', true), | |
172 array('pxcms-theme', true), | |
166 array('phpbb-extension', true), | 173 array('phpbb-extension', true), |
167 array('pimcore-plugin', true), | 174 array('pimcore-plugin', true), |
168 array('plentymarkets-plugin', true), | 175 array('plentymarkets-plugin', true), |
169 array('ppi-module', true), | 176 array('ppi-module', true), |
170 array('prestashop-module', true), | 177 array('prestashop-module', true), |
275 array('drupal-module', 'modules/my_module/', 'shama/my_module'), | 282 array('drupal-module', 'modules/my_module/', 'shama/my_module'), |
276 array('drupal-theme', 'themes/my_module/', 'shama/my_module'), | 283 array('drupal-theme', 'themes/my_module/', 'shama/my_module'), |
277 array('drupal-profile', 'profiles/my_module/', 'shama/my_module'), | 284 array('drupal-profile', 'profiles/my_module/', 'shama/my_module'), |
278 array('drupal-drush', 'drush/my_module/', 'shama/my_module'), | 285 array('drupal-drush', 'drush/my_module/', 'shama/my_module'), |
279 array('elgg-plugin', 'mod/sample_plugin/', 'test/sample_plugin'), | 286 array('elgg-plugin', 'mod/sample_plugin/', 'test/sample_plugin'), |
287 array('eliasis-component', 'components/my_component/', 'shama/my_component'), | |
280 array('eliasis-module', 'modules/my_module/', 'shama/my_module'), | 288 array('eliasis-module', 'modules/my_module/', 'shama/my_module'), |
289 array('eliasis-plugin', 'plugins/my_plugin/', 'shama/my_plugin'), | |
290 array('eliasis-template', 'templates/my_template/', 'shama/my_template'), | |
281 array('ee3-addon', 'system/user/addons/ee_theme/', 'author/ee_theme'), | 291 array('ee3-addon', 'system/user/addons/ee_theme/', 'author/ee_theme'), |
282 array('ee3-theme', 'themes/user/ee_package/', 'author/ee_package'), | 292 array('ee3-theme', 'themes/user/ee_package/', 'author/ee_package'), |
283 array('ee2-addon', 'system/expressionengine/third_party/ee_theme/', 'author/ee_theme'), | 293 array('ee2-addon', 'system/expressionengine/third_party/ee_theme/', 'author/ee_theme'), |
284 array('ee2-theme', 'themes/third_party/ee_package/', 'author/ee_package'), | 294 array('ee2-theme', 'themes/third_party/ee_package/', 'author/ee_package'), |
285 array('ezplatform-assets', 'web/assets/ezplatform/ezplatform_comp/', 'author/ezplatform_comp'), | 295 array('ezplatform-assets', 'web/assets/ezplatform/ezplatform_comp/', 'author/ezplatform_comp'), |
309 array('laravel-library', 'libraries/my_package/', 'shama/my_package'), | 319 array('laravel-library', 'libraries/my_package/', 'shama/my_package'), |
310 array('lavalite-theme', 'public/themes/my_theme/', 'shama/my_theme'), | 320 array('lavalite-theme', 'public/themes/my_theme/', 'shama/my_theme'), |
311 array('lavalite-package', 'packages/my_group/my_package/', 'my_group/my_package'), | 321 array('lavalite-package', 'packages/my_group/my_package/', 'my_group/my_package'), |
312 array('lithium-library', 'libraries/li3_test/', 'user/li3_test'), | 322 array('lithium-library', 'libraries/li3_test/', 'user/li3_test'), |
313 array('magento-library', 'lib/foo/', 'test/foo'), | 323 array('magento-library', 'lib/foo/', 'test/foo'), |
324 array('majima-plugin', 'plugins/MyPlugin/', 'shama/my-plugin'), | |
325 array('modx-extra', 'core/packages/extra/', 'vendor/extra'), | |
314 array('modxevo-snippet', 'assets/snippets/my_snippet/', 'shama/my_snippet'), | 326 array('modxevo-snippet', 'assets/snippets/my_snippet/', 'shama/my_snippet'), |
315 array('modxevo-plugin', 'assets/plugins/my_plugin/', 'shama/my_plugin'), | 327 array('modxevo-plugin', 'assets/plugins/my_plugin/', 'shama/my_plugin'), |
316 array('modxevo-module', 'assets/modules/my_module/', 'shama/my_module'), | 328 array('modxevo-module', 'assets/modules/my_module/', 'shama/my_module'), |
317 array('modxevo-template', 'assets/templates/my_template/', 'shama/my_template'), | 329 array('modxevo-template', 'assets/templates/my_template/', 'shama/my_template'), |
318 array('modxevo-lib', 'assets/lib/my_lib/', 'shama/my_lib'), | 330 array('modxevo-lib', 'assets/lib/my_lib/', 'shama/my_lib'), |
330 array('october-plugin', 'plugins/shama/my_plugin/', 'shama/my_plugin'), | 342 array('october-plugin', 'plugins/shama/my_plugin/', 'shama/my_plugin'), |
331 array('october-theme', 'themes/my_theme/', 'shama/my_theme'), | 343 array('october-theme', 'themes/my_theme/', 'shama/my_theme'), |
332 array('piwik-plugin', 'plugins/VisitSummary/', 'shama/visit-summary'), | 344 array('piwik-plugin', 'plugins/VisitSummary/', 'shama/visit-summary'), |
333 array('prestashop-module', 'modules/a-module/', 'vendor/a-module'), | 345 array('prestashop-module', 'modules/a-module/', 'vendor/a-module'), |
334 array('prestashop-theme', 'themes/a-theme/', 'vendor/a-theme'), | 346 array('prestashop-theme', 'themes/a-theme/', 'vendor/a-theme'), |
347 array('pxcms-module', 'app/Modules/Foo/', 'vendor/module-foo'), | |
348 array('pxcms-module', 'app/Modules/Foo/', 'vendor/pxcms-foo'), | |
349 array('pxcms-theme', 'themes/Foo/', 'vendor/theme-foo'), | |
350 array('pxcms-theme', 'themes/Foo/', 'vendor/pxcms-foo'), | |
335 array('phpbb-extension', 'ext/test/foo/', 'test/foo'), | 351 array('phpbb-extension', 'ext/test/foo/', 'test/foo'), |
336 array('phpbb-style', 'styles/foo/', 'test/foo'), | 352 array('phpbb-style', 'styles/foo/', 'test/foo'), |
337 array('phpbb-language', 'language/foo/', 'test/foo'), | 353 array('phpbb-language', 'language/foo/', 'test/foo'), |
338 array('pimcore-plugin', 'plugins/MyPlugin/', 'ubikz/my_plugin'), | 354 array('pimcore-plugin', 'plugins/MyPlugin/', 'ubikz/my_plugin'), |
339 array('plentymarkets-plugin', 'HelloWorld/', 'plugin-hello-world'), | 355 array('plentymarkets-plugin', 'HelloWorld/', 'plugin-hello-world'), |
523 public function testUninstallAndDeletePackageFromLocalRepo() | 539 public function testUninstallAndDeletePackageFromLocalRepo() |
524 { | 540 { |
525 $package = new Package('foo', '1.0.0', '1.0.0'); | 541 $package = new Package('foo', '1.0.0', '1.0.0'); |
526 | 542 |
527 $installer = $this->getMock('Composer\Installers\Installer', array('getInstallPath'), array($this->io, $this->composer)); | 543 $installer = $this->getMock('Composer\Installers\Installer', array('getInstallPath'), array($this->io, $this->composer)); |
528 $installer->expects($this->once())->method('getInstallPath')->with($package)->will($this->returnValue(sys_get_temp_dir().'/foo')); | 544 $installer->expects($this->atLeastOnce())->method('getInstallPath')->with($package)->will($this->returnValue(sys_get_temp_dir().'/foo')); |
529 | 545 |
530 $repo = $this->getMock('Composer\Repository\InstalledRepositoryInterface'); | 546 $repo = $this->getMock('Composer\Repository\InstalledRepositoryInterface'); |
531 $repo->expects($this->once())->method('hasPackage')->with($package)->will($this->returnValue(true)); | 547 $repo->expects($this->once())->method('hasPackage')->with($package)->will($this->returnValue(true)); |
532 $repo->expects($this->once())->method('removePackage')->with($package); | 548 $repo->expects($this->once())->method('removePackage')->with($package); |
533 | 549 |