Closed (fixed)
Project:
Openlayers
Version:
6.x-2.0-alpha8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
8 Sep 2010 at 19:05 UTC
Updated:
15 Apr 2023 at 20:34 UTC
It seems that if CCK is not installed SimpleTest tests OpenLayers CCK which results in the following error:
Fatal error: Class 'ContentCrudTestCase' not found
Which is to be expected because CCK is not installed so the OpenLayers CCK test should check to see if the ContentCrudTestCase class exists first. I've attached a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| openlayers_cck_test.patch | 702 bytes | Anonymous (not verified) |
Comments
Comment #1
tmcw commentedGreat, there's a slightly more SimpleTest-sanctioned way to do module dependencies, but with this structure (extending), it'd be a big workaround and it's much better to just deal with this here. OL CCK only gets in the way, anyway.
Committed: http://drupal.org/cvs?commit=418152
Comment #2
zzolo commentedShouldn't this just be doing this?:
Comment #3
tmcw commentedNo: The CCK test extends from the SimpleTest provided by the CCK module. It's not possible to do a parent::setUp to establish this dependency after you've already relied on it to create the object / reference to parent. It may be possible to 'extend' an object later in the game, but it would be a big workaround.
Comment #4
zzolo commentedAh, yes, I misunderstood the problem.