function WebTestBase::restoreBatch

Restore the original batch.

See also

::setBatch

2 calls to WebTestBase::restoreBatch()
UpdatePathTestBase::setUp in core/modules/system/src/Tests/Update/UpdatePathTestBase.php
Overrides WebTestBase::setUp() for update testing.
WebTestBase::setUp in core/modules/simpletest/src/WebTestBase.php
Sets up a Drupal site for running functional and integration tests.

File

core/modules/simpletest/src/WebTestBase.php, line 428

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function restoreBatch() {
    // Restore the original Simpletest batch.
    $batch =& batch_get();
    $batch = $this->originalBatch;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.