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

19 lines
334 B
PHP
Raw Normal View History

2021-11-09 03:22:07 +08:00
<?php
namespace Flarum\PackageManager\Tests\integration;
trait RefreshComposerSetup
{
public function tearDown(): void
{
$composerSetup = new SetupComposer();
@unlink($this->tmpDir().'/composer.lock');
$composerSetup->run();
$this->composer('install');
parent::tearDown();
}
}