Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
tests
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2008 at 22:23 UTC
Updated:
15 Nov 2008 at 21:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
chx commentedVery nice but can you add please then this to simpletest as well?
Edit: I mean, where we call prefixTables in the module.
Comment #2
c960657 commentedEven before #327480: simpletest should not contain DB specific code was fixed, Simpletest didn't work too well with
$db_prefix != ''. This patch tries to fix that. Previously Simpletest used a table prefix matching^simpletest\d+, i.e. it did not include the existing $db_prefix. This patch changes that so that if $db_prefix isfoo_, the Simpletest tables are named e.g.foo_simpletest123456node_revisions.With the patch all tests pass with and without a
$db_prefix.Comment #3
catchThis looks good, and it fixes the failing test. RTBC.
Comment #4
dries commentedCan we rename $reg to $matches? What does $reg stands for?
Comment #5
keith.smith commentedAlso,
+ // Strip $db_prefix and skip tables without digets following "simpletest","digets" should be "digits"
Comment #6
c960657 commentedGood question. It is a convention I have used for ages without giving it much thought. I have probably picked it up somewhere in my early PHP days, perhaps from a tutorial or something.
Anyway, the variable name is changed and the typo is fixed.
Comment #7
dries commentedGreat. Thanks for the quick reroll. Committed to CVS HEAD.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.