Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/rocksensor1/web/core/modules/help/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/rocksensor1/web/core/modules/help/tests/src/Functional/Update/HelpTopicsUninstall.php

<?php

declare(strict_types=1);

namespace Drupal\Tests\help\Functional\Update;

use Drupal\FunctionalTests\Update\UpdatePathTestBase;

/**
 * Tests merging help topics module when the module is enabled.
 *
 * @group Update
 * @group #slow
 */
class HelpTopicsUninstall extends UpdatePathTestBase {

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

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

  /**
   * Tests upgrading help module for help topics.
   *
   * @see \help_update_10200()
   * @see \help_post_update_help_topics_search()
   * @see \help_post_update_help_topics_uninstall()
   */
  public function testHelpTopicsMerge(): void {
    $module_handler = \Drupal::moduleHandler();
    $this->assertTrue($module_handler->moduleExists('help'));
    $this->assertTrue($module_handler->moduleExists('help_topics'));
    $this->assertTrue($module_handler->moduleExists('search'));

    $this->assertFalse(\Drupal::database()->schema()->tableExists('help_search_items'));

    $dependencies = $this
      ->config('search.page.help_search')
      ->get('dependencies.module');
    $this->assertTrue(in_array('help_topics', $dependencies, TRUE));
    $this->assertFalse(in_array('help', $dependencies, TRUE));

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

    $this->assertFalse(\Drupal::moduleHandler()->moduleExists('help_topics'));

    $this->assertTrue(\Drupal::database()->schema()->tableExists('help_search_items'));

    $dependencies = $this
      ->config('search.page.help_search')
      ->get('dependencies.module');
    $this->assertFalse(in_array('help_topics', $dependencies, TRUE));
    $this->assertTrue(in_array('help', $dependencies, TRUE));
  }

}

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