Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/german-vocational.cn/core/modules/file/tests/src/Functional/Update/

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/german-vocational.cn/core/modules/file/tests/src/Functional/Update/FileUpdateTest.php

<?php

namespace Drupal\Tests\file\Functional\Update;

use Drupal\FunctionalTests\Update\UpdatePathTestBase;

/**
 * Tests File update path.
 *
 * @group legacy
 */
class FileUpdateTest extends UpdatePathTestBase {

  /**
   * Modules to enable after the database is loaded.
   */
  protected static $modules = ['file'];

  /**
   * {@inheritdoc}
   */
  protected function setDatabaseDumpFiles() {
    $this->databaseDumpFiles = [
      __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
      __DIR__ . '/../../../../tests/fixtures/update/drupal-8.file_formatters_update_2677990.php',
    ];
  }

  /**
   * Tests file_update_8001().
   */
  public function testPostUpdate8001() {
    $view = 'core.entity_view_display.node.article.default';

    // Check that field_file_generic formatter has no
    // use_description_as_link_text setting.
    $formatter_settings = $this->config($view)->get('content.field_file_generic_2677990.settings');
    $this->assertTrue(!isset($formatter_settings['use_description_as_link_text']));

    // Check that field_file_table formatter has no use_description_as_link_text
    // setting.
    $formatter_settings = $this->config($view)->get('content.field_file_table_2677990.settings');
    $this->assertTrue(!isset($formatter_settings['use_description_as_link_text']));

    // Run updates.
    $this->runUpdates();

    // Check that field_file_generic formatter has a
    // use_description_as_link_text setting which value is TRUE.
    $formatter_settings = $this->config($view)->get('content.field_file_generic_2677990.settings');
    $this->assertEqual($formatter_settings, ['use_description_as_link_text' => TRUE]);

    // Check that field_file_table formatter has a use_description_as_link_text
    // setting which value is FALSE.
    $formatter_settings = $this->config($view)->get('content.field_file_table_2677990.settings');
    $this->assertEqual($formatter_settings, ['use_description_as_link_text' => FALSE]);
  }

}

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