You are here

public function RestfulUserLoginCookieTestCase::tearDown in RESTful 7.2

Same name and namespace in other branches
  1. 7 tests/RestfulUserLoginCookieTestCase.test \RestfulUserLoginCookieTestCase::tearDown()

Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

Overrides DrupalWebTestCase::tearDown

File

tests/RestfulUserLoginCookieTestCase.test, line 47
Contains RestfulUserLoginCookieTestCase.

Class

RestfulUserLoginCookieTestCase
@file Contains RestfulUserLoginCookieTestCase.

Code

public function tearDown() {
  global $user;

  // Put back the user object.
  $user = $this->originalUser;

  // Put back the $_SERVER array.
  $_SERVER = $this->originalServer;
  parent::tearDown();
}