Ref core issue #1671200: Simpletest broken: CURLOPT_COOKIEJAR cannot be NULL. On some PHP configurations the cURL options are not set correctly, causing HTML output to be returned in the AJAX calls. This causes the familiar An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. error messages.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pfrenssen’s picture

Status: Active » Needs review
FileSize
2.08 KB

I rerolled the patch that was made by jaimealsilva and sun and was posted in comment #4 in #1671200: Simpletest broken: CURLOPT_COOKIEJAR cannot be NULL for contrib Simpletest.

pfrenssen’s picture

DrupalRemoteTestCase::setUp() is not inheriting DrupalWebTestCase::setUp(). This patch also sets $this->cookieFile in DrupalRemoteTestCase::setUp(), but a cleaner solution would indeed be to do this in curlInitialize().

djdevin’s picture

This also exists in 6.x-2.x, and also any version with PHP 5.3.14.

pfrenssen’s picture

The patch in #1671200: Simpletest broken: CURLOPT_COOKIEJAR cannot be NULL has landed in D8 and there is a new version of the patch for D7.

kentr’s picture

Issue summary: View changes
FileSize
1.52 KB

D6 patch attached.

Though one could also create a new class to extend DrupalWebTestCase with a correct curlInitialize() method.