You are here

protected function DrupalRemoteTestCase::revertActions in SimpleTest 7.2

Revert all actions listed in the $actions array.

1 call to DrupalRemoteTestCase::revertActions()
DrupalRemoteTestCase::tearDown in ./drupal_web_test_case.php
Perform and revert actions, then tear down based on what setUp() did.

File

./drupal_web_test_case.php, line 3653
Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.

Class

DrupalRemoteTestCase
Base class used for writing atomic remote tests.

Code

protected function revertActions() {
  foreach ($this->actions as $action) {
    if (method_exists($this, 'revert' . ucfirst($action))) {
      call_user_func(array(
        $this,
        'revert' . ucfirst($action),
      ));
    }
  }
}