When I enable Drupal Testing module and go to admin/config/development/testing I got the following error:

Fatal error: Class 'FeedsWebTestCase' not found in C:\work_php\drupal7\sites\all\modules\contrib\feeds\tests\feeds_processor_term.test on line 12

Comments

wojtha’s picture

Title: Fatal error: Class 'FeedsWebTestCase' » Fatal error: Class 'FeedsWebTestCase' not found

Hmmmm. Strange. Fix was commited to master branch months ago, but it is still missing in feeds (7.x-2.x) branch:

4d28df9 (Alex Barth 2010-09-09 22:56:55 +0000   8) // Require FeedsWebTestCase class definition.
4d28df9 (Alex Barth 2010-09-09 22:56:55 +0000   9) require_once(dirname(__FILE__) .'/feeds.test.inc

Line require_once(dirname(__FILE__) .'/feeds.test.inc is missing at the beginning of the following tests:

feeds_fetcher_file.test
feeds_processor_node.test
feeds_processor_user.test
feeds_processor_term.test
feeds_scheduler.test

wojtha’s picture

Same problem for
class FeedsMapperDateTestCase extends FeedsMapperTestCase in feeds_mapper_date.test.
class FeedsMapperFieldTestCase extends FeedsMapperTestCase in feeds_mapper_field.test.
class FeedsMapperFileTestCase extends FeedsMapperTestCase in feeds_mapper_file.test.
and
class FeedsExamplesFeedTestCase extends FeedsWebTestCase in feeds_news.test
and
class FeedsExamplesNodeTestCase extends FeedsWebTestCase in feeds_import.test

wojtha’s picture

Version: 7.x-2.0-alpha3 » 7.x-2.x-dev
StatusFileSize
new3.75 KB

I added required classes, I cherry-pick exactly same lines from master if the file was present there.

Patch is againts 7.x-2.x-dev.

This is offtopic but here are results from 7.x-2.x-alpha3 on my machine:
2087 passes, 175 fails, 21 exceptions, and 734 debug messages

pillarsdotnet’s picture

Status: Active » Needs review
StatusFileSize
new5.74 KB

Slightly different patch, created with "git format-patch" and consistent with existing code.

dave reid’s picture

Status: Needs review » Closed (duplicate)