When attempting to run simpletests from Drush or access the path admin/build/testing, I receive the following fatal error.

Fatal error: Class 'ServicesWebTestCase' not found in /PATH/services/tests/functional/ServicesParserTests.test on line 13

Comments

marcingy’s picture

Status: Active » Postponed (maintainer needs more info)

Tests run on d.o without issue have you tried clearing your cache.

markdorison’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new414 bytes

Added the following line to ServicesParserTests.test.

module_load_include('php', 'services', 'tests/functional/ServicesWebTestCase');

markdorison’s picture

@marcingy: Yes, I tried clearing caches multiple times.

marcingy’s picture

Status: Active » Postponed (maintainer needs more info)

This works on d.o without issue - so I see no reason why the patch supplied above is required, the class should be being lazy loaded. Also I know Kyle runs d6 testing locally without issue.

markdorison’s picture

Status: Postponed (maintainer needs more info) » Active

We ran into a similar issue with CCK's tests in the past.

#1363036: Class 'ContentCrudTestCase' not found.

marcingy’s picture

Status: Active » Needs review

Ah thanks for the cross reference :) I shall read that issue later before reviewing committing this patch. Setting to needs review.

kylebrowning’s picture

It sounds like its not being included in the info file for autoload to do its magic?

kylebrowning’s picture

Status: Needs review » Reviewed & tested by the community
kylebrowning’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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