From fc681d50cab24f1a625a935c1b0d0212f2d3e962 Mon Sep 17 00:00:00 2001 From: VIGHNESH SADAGOPAL <vighneshsadagopal@3684666.no-reply.drupal.org> Date: Mon, 18 Apr 2022 11:38:48 +0000 Subject: [PATCH] Issue #3275075 by VIGHNESH SADAGOPAL, phenaproxima, kunal.sachdev: Change the name of the variable $vendor in \Drupal\Tests\automatic_updates\Kernel\ReadinessValidation\StagedProjectsValidatorTest::validate --- .../ReadinessValidation/StagedProjectsValidatorTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/src/Kernel/ReadinessValidation/StagedProjectsValidatorTest.php b/tests/src/Kernel/ReadinessValidation/StagedProjectsValidatorTest.php index 171490c189..1bddb5dcd0 100644 --- a/tests/src/Kernel/ReadinessValidation/StagedProjectsValidatorTest.php +++ b/tests/src/Kernel/ReadinessValidation/StagedProjectsValidatorTest.php @@ -50,9 +50,9 @@ class StagedProjectsValidatorTest extends AutomaticUpdatesKernelTestBase { // If we are testing a fixture with existing stage directory then we // need to use a virtual file system directory, so we can create a // subdirectory using the stage ID after it is created below. - $vendor = vfsStream::newDirectory('au_stage'); - $this->vfsRoot->addChild($vendor); - TestStage::$stagingRoot = $vendor->url(); + $stage_vfs_dir = vfsStream::newDirectory('au_stage'); + $this->vfsRoot->addChild($stage_vfs_dir); + TestStage::$stagingRoot = $stage_vfs_dir->url(); } else { // If we are testing non-existent staging directory we can use the path @@ -66,7 +66,7 @@ class StagedProjectsValidatorTest extends AutomaticUpdatesKernelTestBase { // Copy the fixture's staging directory into a subdirectory using the // stage ID as the directory name. $sub_directory = vfsStream::newDirectory($stage_id); - $vendor->addChild($sub_directory); + $stage_vfs_dir->addChild($sub_directory); (new Filesystem())->mirror($stage_dir, $sub_directory->url()); } -- GitLab