In porting the Pathauto tests from the Simpletest 6.x-1.x to 6.x-2.x style I found a few things I thought I would document here in the hopes that they benefit others:
- Put the .test file into the root directory of your module. If you had it in
modules/tests/module.testit now belongs inmodules/module.test - DrupalTestCase is now DrupalWebTestCase
- get_info() is now getInfo()
- in getInfo, desc is now description
- $this->drupalCreateUserRolePerm is now $this->drupalCreateUser(
- drupalLoginUser is now drupalLogin
- assertWantedRaw is now assertRaw and >assertWantedPattern is now assertPattern(
- $this->drupalVariableSet is now just a standard variable_set
- $this->drupalModuleEnable is deprecated in favor of parent::setUp('modulename', 'secondmodulename') in your setUp() override.
I was unable to determine how to get the report of "58 passes, 0 fails, 0 exceptions". Any help on that?