Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

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

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/Core/Config/ExtensionInstallStorageTest.php

<?php

namespace Drupal\Tests\Core\Config;

use Drupal\Core\Config\ExtensionInstallStorage;
use Drupal\Core\Config\StorageInterface;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Tests\UnitTestCase;

/**
 * Tests the Config.
 *
 * @coversDefaultClass \Drupal\Core\Config\ExtensionInstallStorage
 *
 * @group Config
 *
 * @see \Drupal\Core\Config\Config
 */
class ExtensionInstallStorageTest extends UnitTestCase {

  /**
   * @covers ::__construct
   * @group legacy
   * @dataProvider providerTestProfileDeprecation
   * @expectedDeprecation All \Drupal\Core\Config\ExtensionInstallStorage::__construct() arguments will be required in drupal:9.0.0. See https://www.drupal.org/node/2538996
   */
  public function testProfileDeprecation($container_profile) {
    $config_storage = $this->prophesize(StorageInterface::class)->reveal();
    $container = new ContainerBuilder();
    $container->setParameter('install_profile', $container_profile);
    \Drupal::setContainer($container);
    $storage = new TestExtensionInstallStorage($config_storage);
    $this->assertSame($container_profile, $storage->getProfile());
  }

  /**
   * Data provider for ::testProfileDeprecation
   */
  public function providerTestProfileDeprecation() {
    return [
      'null profile' => [NULL],
      'test profile' => ['test'],
    ];
  }

}

class TestExtensionInstallStorage extends ExtensionInstallStorage {

  /**
   * Gets the install profile value.
   *
   * @return string|null
   */
  public function getProfile() {
    return $this->installProfile;
  }

}

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