framework/extensions/package-manager/tests/integration/ChangeComposerConfig.php

22 lines
469 B
PHP
Raw Normal View History

2021-11-25 01:25:43 +08:00
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\ExtensionManager\Tests\integration;
2021-11-25 01:25:43 +08:00
trait ChangeComposerConfig
{
protected function setComposerConfig(array $requirements): void
{
$composerSetup = new SetupComposer($requirements);
$composerSetup->run();
$this->composer('install');
}
}