You are here

function RestfulUserLoginCookieTestCase::tearDown in RESTful 7

Same name and namespace in other branches
  1. 7.2 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 38
Contains RestfulUserLoginCookieTestCase.

Class

RestfulUserLoginCookieTestCase
@file Contains RestfulUserLoginCookieTestCase.

Code

function tearDown() {
  global $user;

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

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