From 776a549014c3aa00bda92f476d5355b841fb10c1 Mon Sep 17 00:00:00 2001
From: Bradley M. Froehle <brad.froehle@gmail.com>
Date: Fri, 1 Apr 2011 10:15:06 -0700
Subject: [PATCH] Attempt to debug failing tests on qa.drupal.org, part II.

---
 cas.test |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/cas.test b/cas.test
index 0021526..d54e8e8 100644
--- a/cas.test
+++ b/cas.test
@@ -48,10 +48,8 @@ class CasTestHelper extends DrupalWebTestCase {
     $filename = 'CAS-' . $version . '.tgz';
     $url = rtrim($url, '/') . '/' . $version . '/' . $filename;
 
-    // Download phpCAS tarball to a simpletest cache directory. If we put the
-    // file in the public, private, or temporary directory we would need to
-    // re-download it every test case.
-    $cache_directory = $this->originalFileDirectory . '/simpletest/cas';
+    // Download phpCAS tarball to a simpletest temporary directory.
+    $cache_directory = 'temporary://cas';
     $local = $cache_directory . '/' . $filename;
     if (!file_exists($cache_directory)) {
       mkdir($cache_directory);
@@ -301,7 +299,6 @@ class CasUserTestCase extends CasTestHelper {
    * Tests automatically registering a user on login.
    */
   function testCasAutoRegister() {
-    return;
     $cas_name = $this->randomName();
     variable_set('cas_test_cas_name', $cas_name);
 
@@ -328,7 +325,6 @@ class CasUserTestCase extends CasTestHelper {
   }
 
   function testUserEdit() {
-    return;
     $cas_name = $this->randomName();
     $account = $this->casCreateUser($cas_name, array('change own username'));
 
@@ -395,7 +391,6 @@ class CasLogoutRedirectionTestCase extends CasTestHelper {
    * Test redirection on user logout.
    */
   function testLogoutRedirection() {
-    return;
     $account = $this->casCreateUser();
 
     $this->casLogin($account);
@@ -462,7 +457,6 @@ class CasLoginRedirectionTestCase extends CasTestHelper {
    * Verify login redirection for an existing user.
    */
   function testExistingUserLoginRedirection() {
-    return;
     $node1 = $this->drupalCreateNode();
     $node2 = $this->drupalCreateNode();
     $node3 = $this->drupalCreateNode();
@@ -532,7 +526,6 @@ class CasLoginRedirectionTestCase extends CasTestHelper {
    * Verify login redirection for a new user.
    */
   function testNewUserLoginRedirection() {
-    return;
     // Initial login without a destination goes to front page.
     $cas_name = $this->randomName();
     $this->casLogin($cas_name);
-- 
1.7.4.1

