2013-05-08 3 views
1

이 샘플 테스트를 실행하는 동안 Drupal 일괄 처리 화면 (진행률 표시 줄이있는)이 실행을 멈추고 서버 로그에 오류가 기록되지 않고, 브라우저 창 전체가 멈추게됩니다. 코드는 매우 기본적인 것입니다 :Drupal6 및 SimpleTest를 사용하여 SimpleTest GET 및 POST를 테스트 케이스로 만들 수 없음

<?php 
class FooTestCase extends DrupalWebTestCase { 
    public static function getInfo() { 
    return array(
     'name' => 'test', 
     'description' => 'test', 
     'group' => 'Foo', 
    ); 
    } 

    public function setUp() { 
    parent::setUp(); 
    } 

    public function testLogin() { 
    // The drupalCreateUser() runs fine 
    $user = $this->drupalCreateUser(array('access content')); 
    // If i comment out the following, test runs fine. 
    $this->drupalLogin($user); 
    } 
} 
?> 

내가 무엇이 누락 되었습니까?

== EDIT1 ==

추가 단서 : 나는 drush 테스트 실행을 통해 테스트를 실행, 그들은 잘 작동하고 있습니다.

이것은 curl_setopt_array 오류로 판명

== EDIT2의 ==, 그것은 DrupalWebTestCase::curlInitialize()시 FALSE를 반환합니다. 문제가 더 이상 진행되지 않습니다.

== EDIT3 == 깊은 디버깅 후에 이것은 셋업 시도에서 에러를 유발 컬 CURLOPT_FOLLOWLOCATION 갖는 문제로 밝혀졌다.

답변