minor #38709 [Cache] Fixed broken test (Nyholm)

This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Fixed broken test

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

I added this line of code in https://github.com/symfony/symfony/pull/38635

However, some time between 4.4 and 5.x the `FilesystemAdapterTest::rmdir()` was removed. This PR make sure tests does not fail on 5.x.

I target 4.4, I believe it will be simple to merge up to 5.1 and 5.x. Let me know if I should target 5.x instead.

Commits
-------

e17797c8e4 [Cache] Fixed broken test
This commit is contained in:
Fabien Potencier 2020-10-25 09:34:30 +01:00
commit 3e5cc2f75d

View File

@ -38,7 +38,7 @@ class ChainAdapterTest extends AdapterTestCase
public static function tearDownAfterClass(): void
{
FilesystemAdapterTest::rmdir(sys_get_temp_dir().'/symfony-cache');
(new Filesystem())->remove(sys_get_temp_dir().'/symfony-cache');
}
public function testEmptyAdaptersException()