Hi all,

I've installed Simpletest and I'm facing conflicts with Pathauto.
When I want to go to the testing page I have this php error :
Fatal error: Cannot redeclare class PathautoUnitTestCase in [...]\www\sites\all\modules\pathauto\tests\pathauto.test on line 43

Does someone know what to do in order to solve that problem?

Thanks in advance.

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have Pathauto downloaded to in multiple locations in your file system?

Balth’s picture

I have only one "pathauto" folder.

But, and that the cause of the problem , this file contains two file"pathauto.test".
One at the root and the other one in ./test/

In these documents is declared the same class extending differents mothers
class PathautoUnitTestCase extends DrupalWebTestCase {
class PathautoUnitTestCase extends PathautoTestHelper {

I don't understand...

Balth’s picture

Status: Postponed (maintainer needs more info) » Active
dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

Ah, so that probably means that at some point we moved the file, and when you updated the module you probably didn't delete the old module files before copying over the new ones. Try doing exactly that - delete the module folder and copy in the latest release.

Balth’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

It works! Thank you !
Best regards

alex.pilon’s picture

Thanks