Merge branch '5.2' into 5.x

* 5.2:
  [Contracts] fix branch-aliases
  Fix transient test
This commit is contained in:
Alexander M. Turek 2021-02-12 01:05:48 +01:00
commit 9323f413cb

View File

@ -19,6 +19,7 @@ use Symfony\Component\Config\Resource\ResourceInterface;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
@ -38,13 +39,14 @@ class CacheClearCommandTest extends TestCase
protected function tearDown(): void
{
$this->fs->remove($this->kernel->getProjectDir());
try {
$this->fs->remove($this->kernel->getProjectDir());
} catch (IOException $e) {
}
}
public function testCacheIsFreshAfterCacheClearedWithWarmup()
{
$this->fs->mkdir($this->kernel->getProjectDir());
$input = new ArrayInput(['cache:clear']);
$application = new Application($this->kernel);
$application->setCatchExceptions(false);