Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html1/testsite/web/core/modules/editor/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/html1/testsite/web/core/modules/editor/tests/src/Functional/Update/EditorUpdateTest.php

<?php

namespace Drupal\Tests\editor\Functional\Update;

use Drupal\FunctionalTests\Update\UpdatePathTestBase;

/**
 * Tests Editor module database updates.
 *
 * @group editor
 * @group legacy
 */
class EditorUpdateTest extends UpdatePathTestBase {

  /**
   * {@inheritdoc}
   */
  public function setDatabaseDumpFiles() {
    $this->databaseDumpFiles = [
      __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
      // Simulate an un-synchronized environment.
      __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.editor-editor_update_8001.php',
    ];
  }

  /**
   * Tests editor_update_8001().
   *
   * @see editor_update_8001()
   */
  public function testEditorUpdate8001() {
    /** @var \Drupal\Core\Config\ConfigFactoryInterface $config_factory */
    $config_factory = $this->container->get('config.factory');

    $format_basic_html = $config_factory->get('filter.format.basic_html');
    $editor_basic_html = $config_factory->get('editor.editor.basic_html');
    $format_full_html = $config_factory->get('filter.format.full_html');
    $editor_full_html = $config_factory->get('editor.editor.full_html');

    // Checks if the 'basic_html' format and editor statuses differ.
    $this->assertTrue($format_basic_html->get('status'));
    $this->assertFalse($editor_basic_html->get('status'));
    $this->assertNotIdentical($format_basic_html->get('status'), $editor_basic_html->get('status'));

    // Checks if the 'full_html' format and editor statuses differ.
    $this->assertFalse($format_full_html->get('status'));
    $this->assertTrue($editor_full_html->get('status'));
    $this->assertNotIdentical($format_full_html->get('status'), $editor_full_html->get('status'));

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

    // Reload text formats and editors.
    $format_basic_html = $config_factory->get('filter.format.basic_html');
    $editor_basic_html = $config_factory->get('editor.editor.basic_html');
    $format_full_html = $config_factory->get('filter.format.full_html');
    $editor_full_html = $config_factory->get('editor.editor.full_html');

    // Checks if the 'basic_html' format and editor statuses are in sync.
    $this->assertTrue($format_basic_html->get('status'));
    $this->assertTrue($editor_basic_html->get('status'));
    $this->assertIdentical($format_basic_html->get('status'), $editor_basic_html->get('status'));

    // Checks if the 'full_html' format and editor statuses are in sync.
    $this->assertFalse($format_full_html->get('status'));
    $this->assertFalse($editor_full_html->get('status'));
    $this->assertIdentical($format_full_html->get('status'), $editor_full_html->get('status'));
  }

}

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