Our GHOP student boombatower made a great patch for drupalGet I'm putting it in its own issue so it doesn't get overlooked

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

boombatower’s picture

The same issue can occur when using drupalPostRequest() so I'm not sure if that function should be patched as well. In my case I used the drupalGet() method to add the necessary parameters and then submitted with the url being set to NULL.

$this->drupalGet('node/add/story', array('query' => array('translation' => $nid, 'language' => $language)));

$edit = array();
$edit['title'] = $title;
$edit['body'] = $body;

$this->drupalPostRequest(NULL, $edit, 'Save');

Rok Žlender’s picture

Status: Needs review » Fixed

Committed.

webchick’s picture

Status: Fixed » Patch (to be ported)
Rok Žlender’s picture

Status: Patch (to be ported) » Needs review
FileSize
4.41 KB

Patch also adds url() call in drupalGet.

Rok Žlender’s picture

FileSize
6.23 KB

Rerolled.

Rok Žlender’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev
FileSize
6.3 KB

And again

boombatower’s picture

Status: Needs review » Fixed

I believe this has been committed and is working correctly.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.