If I add the line parent::setUp(); as the first line of setUp() function I receive "invalid permission xxx" error. Is this expected behaviour? If I read the documentation I should call this parent function... Check out http://drupal.org/node/315609#comment-1113247, add the parent line and test yourself.

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

  ...
}

Comments

beginner’s picture

Status: Active » Postponed (maintainer needs more info)

@hass: you closed the other issue. Is this bug still valid?

If so, more information would be required. What permission are you talking about?
If it's a perm that's defined by your module, you need to setup your module so:

function setUp() {
  parent::setUp('module_name');

}
hass’s picture

I've set the GA issue to fixed as this v1.x to v2.x tests upgrade seems to be fixed, but this bugs here nevertheless exists and if someone executes the current GA 2.x tests his site get's cluttered. If someone have locale module enabled like me - all tests also timeout.

Therefore I cannot test if parent::setUp('googleanalytics'); may work until this buggy module fixed. See #334554: SimpleTest: Prevent endless loop and upper timeout during request for the blocker.

hass’s picture

Project: SimpleTest » Google Analytics
Version: 6.x-2.5 » 6.x-2.0
Status: Postponed (maintainer needs more info) » Fixed

Tested on a new site and seems working. THX

hass’s picture

Title: Invalid permission xxxx » Invalid permission xxxx message running .test's

Status: Fixed » Closed (fixed)

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