Skip to content
Snippets Groups Projects
Commit 270d532f authored by catch's avatar catch
Browse files

Issue #3497482: Remove KernelTestBase::$backupStaticAttributes

parent 3e8324be
No related branches found
No related tags found
4 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!617Issue #3043725: Provide a Entity Handler for user cancelation
Pipeline #391889 passed with warnings
Pipeline: drupal

#391905

    Pipeline: drupal

    #391895

      Pipeline: drupal

      #391890

        ......@@ -104,15 +104,6 @@ abstract class KernelTestBase extends TestCase implements ServiceProviderInterfa
        use ProphecyTrait;
        use ExpectDeprecationTrait;
        /**
        * {@inheritdoc}
        *
        * Back up and restore static class properties that may be changed by tests.
        *
        * @see self::runTestInSeparateProcess
        */
        protected $backupStaticAttributes = TRUE;
        /**
        * {@inheritdoc}
        */
        ......@@ -121,23 +112,6 @@ public function __construct(string $name) {
        $this->setRunTestInSeparateProcess(TRUE);
        }
        /**
        * {@inheritdoc}
        *
        * Contains a few static class properties for performance.
        */
        protected $backupStaticAttributesBlacklist = [
        // Ignore static discovery/parser caches to speed up tests.
        'Drupal\Component\Discovery\YamlDiscovery' => ['parsedFiles'],
        'Drupal\Core\DependencyInjection\YamlFileLoader' => ['yaml'],
        'Drupal\Core\Extension\ExtensionDiscovery' => ['files'],
        'Drupal\Core\Extension\InfoParser' => ['parsedInfos'],
        // Drupal::$container cannot be serialized.
        'Drupal' => ['container'],
        // Settings cannot be serialized.
        'Drupal\Core\Site\Settings' => ['instance'],
        ];
        /**
        * @var \Composer\Autoload\Classloader
        */
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment