Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/ift/web/core/tests/Drupal/FunctionalJavascriptTests/Core/Session/

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/tests/Drupal/FunctionalJavascriptTests/Core/Session/SessionTest.php

<?php

namespace Drupal\FunctionalJavascriptTests\Core\Session;

use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\menu_link_content\Entity\MenuLinkContent;

/**
 * Tests that sessions don't expire.
 *
 * @group session
 */
class SessionTest extends WebDriverTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = ['menu_link_content', 'block'];

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

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();

    $account = $this->drupalCreateUser();
    $this->drupalLogin($account);

    $menu_link_content = MenuLinkContent::create([
      'title' => 'Link to front page',
      'menu_name' => 'tools',
      'link' => ['uri' => 'route:<front>'],
    ]);
    $menu_link_content->save();

    $this->drupalPlaceBlock('system_menu_block:tools');
  }

  /**
   * Tests that the session doesn't expire.
   *
   * Makes sure that drupal_valid_test_ua() works for multiple requests
   * performed by the Mink browser. The SIMPLETEST_USER_AGENT cookie must always
   * be valid.
   */
  public function testSessionExpiration() {
    // Visit the front page and click the link back to the front page a large
    // number of times.
    $this->drupalGet('<front>');

    $page = $this->getSession()->getPage();

    for ($i = 0; $i < 25; $i++) {
      $page->clickLink('Link to front page');
    }
  }

}

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