Same filename and directory in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Batch/BatchKernelTest.php
- 9 core/tests/Drupal/KernelTests/Core/Batch/BatchKernelTest.php
Namespace
Drupal\KernelTests\Core\Batch
File
core/tests/Drupal/KernelTests/Core/Batch/BatchKernelTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\KernelTests\Core\Batch;
use Drupal\KernelTests\KernelTestBase;
class BatchKernelTest extends KernelTestBase {
protected function setUp() : void {
parent::setUp();
require_once $this->root . '/core/includes/batch.inc';
}
public function testNeedsUpdate() {
$this
->assertEquals(FALSE, _batch_needs_update());
$this
->assertEquals(TRUE, _batch_needs_update(TRUE));
$this
->assertEquals(TRUE, _batch_needs_update());
$this
->assertEquals(FALSE, _batch_needs_update(FALSE));
$this
->assertEquals(FALSE, _batch_needs_update());
}
}
Classes