Closed (fixed)
Project:
Ubercart
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2011 at 10:04 UTC
Updated:
29 Nov 2011 at 15:00 UTC
Hi,
I get
Fatal error: Class 'UbercartTestHelper' not found in /.../sites/all/modules/ubercart/uc_cart_links/uc_cart_links.test on line 11
if I rename the filename, I get this error in the next ubercart submodule, which is containing tests.
Comments
Comment #1
longwaveWhere do you see this error? All SimpleTests work and pass for me, and the testbot on drupal.org agrees.
Comment #2
tr commentedIf you've updated your Ubercart site recently, it may be that you need to clear the cache in order to rebuild the class registry. UbercartTestHelper is in uc_store/uc_store.test.
Comment #3
longwave@TR: but there is no class registry in D6, is there? Perhaps we need the same code that's in uc_order.test in D6:
Comment #4
tr commentedOh yeah. D6. No there's no class registry in D6. I don't see how this can happen then, or rather I don't see how this can happen on one site and not on another, unless there's a stale cache involved (maybe Boost or Pressflow or APC or some other non-core Drupal caching?).
Comment #5
longwaveI seem to remember having to add that code to uc_order.test as SimpleTest was loading it before uc_store.test, and the helper wasn't found in some cases. Perhaps the sequence of file loading is server dependent somehow - directory/filename order in the file system perhaps?
@jepSter: can you try adding the code from #3 to uc_cart_links.test and see if that helps?
Comment #6
longwaveCommitted code from #3 to uc_cart_links.test which should fix this.