Issue #3172425 by mikelutz, catch: "Symfony\Component\Lock\Factory" is deprecated since Symfony 4.4 and will be removed in 5.0 use "Symfony\Component\Lock\LockFactory" instead
parent
ebf61730dc
commit
e304572729
|
@ -11,7 +11,7 @@ use Drupal\Tests\Traits\PHPUnit8Warnings;
|
|||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Filesystem\Filesystem as SymfonyFilesystem;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
use Symfony\Component\Lock\Factory;
|
||||
use Symfony\Component\Lock\LockFactory;
|
||||
use Symfony\Component\Lock\Store\FlockStore;
|
||||
use Symfony\Component\Process\PhpExecutableFinder;
|
||||
use Symfony\Component\Process\Process;
|
||||
|
@ -457,7 +457,7 @@ abstract class BuildTestBase extends TestCase {
|
|||
*/
|
||||
protected function findAvailablePort() {
|
||||
$store = new FlockStore(DrupalFilesystem::getOsTemporaryDirectory());
|
||||
$lock_factory = new Factory($store);
|
||||
$lock_factory = new LockFactory($store);
|
||||
|
||||
$counter = 100;
|
||||
while ($counter--) {
|
||||
|
|
Loading…
Reference in New Issue