If Feeds module isn't downloaded, even listing tests (either with drush test-run or admin/config/development/testing) dies with:
Fatal error: Class 'FeedsWebTestCase' not found in .../sites/all/modules/relation/relation_feeds/tests/relation.feeds_processor.test on line 11

Comments

uhkis’s picture

Status: Active » Needs review
StatusFileSize
new6.38 KB

Patch checks if the FeedsWebTestCase is available. There might be a better way to do this, but this patch fixes the problem anyways.

mikran’s picture

StatusFileSize
new624 bytes

Rerolled, and this one doesn't indent the whole class.

jorrit’s picture

Maybe just do a:

if (!class_exists('FeedsWebTestCase')) {
  return;
}

on top of the file to avoid the indentation issue?

  • Commit 5b8e243 on 7.x-1.x authored by Jorrit, committed by mikran:
    Issue #2198405 by Jorrit, mikran, Uhkis: Fixed fatal error in tests if...
mikran’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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