Skip to content
Snippets Groups Projects

Issue #3304365: Do not check excluded folders for symlinks

Merged Issue #3304365: Do not check excluded folders for symlinks
2 unresolved threads
Merged Adam G-H requested to merge issue/automatic_updates-3304365:3304365-do-not-check into 8.x-2.x
2 unresolved threads
2 files
+ 35
13
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -6,7 +6,7 @@ use Drupal\Core\DependencyInjection\ContainerBuilder;
@@ -6,7 +6,7 @@ use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\KernelTests\KernelTestBase;
use Drupal\KernelTests\KernelTestBase;
use Drupal\package_manager\Event\PreApplyEvent;
use Drupal\package_manager\Event\PreApplyEvent;
use Drupal\package_manager\Event\StageEvent;
use Drupal\package_manager\Event\StageEvent;
use Drupal\package_manager\Event\StatusCheckEvent;
use Drupal\package_manager\StatusCheckTrait;
use Drupal\package_manager\Validator\DiskSpaceValidator;
use Drupal\package_manager\Validator\DiskSpaceValidator;
use Drupal\package_manager\Exception\StageException;
use Drupal\package_manager\Exception\StageException;
use Drupal\package_manager\Exception\StageValidationException;
use Drupal\package_manager\Exception\StageValidationException;
@@ -32,6 +32,7 @@ use Symfony\Component\DependencyInjection\Definition;
@@ -32,6 +32,7 @@ use Symfony\Component\DependencyInjection\Definition;
abstract class PackageManagerKernelTestBase extends KernelTestBase {
abstract class PackageManagerKernelTestBase extends KernelTestBase {
use FixtureUtilityTrait;
use FixtureUtilityTrait;
 
use StatusCheckTrait;
use ValidationTestTrait;
use ValidationTestTrait;
/**
/**
@@ -186,9 +187,8 @@ abstract class PackageManagerKernelTestBase extends KernelTestBase {
@@ -186,9 +187,8 @@ abstract class PackageManagerKernelTestBase extends KernelTestBase {
* provided a new stage will be created.
* provided a new stage will be created.
*/
*/
protected function assertStatusCheckResults(array $expected_results, Stage $stage = NULL): void {
protected function assertStatusCheckResults(array $expected_results, Stage $stage = NULL): void {
$event = new StatusCheckEvent($stage ?? $this->createStage(), []);
$actual_results = $this->runStatusCheck($stage ?? $this->createStage(), $this->container->get('event_dispatcher'));
$this->container->get('event_dispatcher')->dispatch($event);
$this->assertValidationResultsEqual($expected_results, $actual_results);
$this->assertValidationResultsEqual($expected_results, $event->getResults());
}
}
/**
/**
Loading