The field_test helper module implements
a) an entity type
b) a field type + widgets and formatters
c) a field storage backend.
Too much for a single file, it's becoming an unreadable mess. This patch splits those 3 parts in separate include files.
Additionally:
- removes a couple unneeded constants
- moves the module from modules/simpletest/tests (which is supposed to contain helper test modules for /includes files) into /modules/fields/tests where it belongs.
So much for switching between the two directories when writing field patches.
Big patch, 95% is code moving around.
Will probably break one or two pending patches, but less than yesterday and less than tomorrow ;-)
Other than that, should be pretty harmless, but I'll let the bot check.
Comment | File | Size | Author |
---|---|---|---|
#9 | field_test_reorg.patch | 349.27 KB | yched |
#3 | field_test_reorg.patch | 349.27 KB | yched |
field_test_reorg.patch | 347.72 KB | yched | |
Comments
Comment #1
yched CreditAttribution: yched commentedComment #3
yched CreditAttribution: yched commentedForgot to update field.info with the new location of the field.test file.
+ Additional reorg: too many test cases under the 'Field' group. Patch splits that into 'Field API' tests and 'Field Types' tests.
Comment #4
yched CreditAttribution: yched commentedErm. There is no syntax error in list.test. And the List tests pass fine locally.
I want a re-test with another slave than #33.
Comment #8
yched CreditAttribution: yched commentedSigh, test bot is against me today.
Those 3 failures in DBLogTestCase() are not in this patch. I've seen them reported on another patch and disappeared after a retest. I cannot reproduce them locally.
I opened #638496: Random failures in dblog tests ? about this.
This patch is RTBC.
I could ask for a re-test, but slave #33 reports inexistent PHP syntax errors, and slave #34 reports unrelated test failures. Those are the only two slaves available right now :-(.
Comment #9
yched CreditAttribution: yched commentedHm, it's not too clear what happens with those dblog failures.
Let's try to get a green report once again (same patch)
Comment #10
yched CreditAttribution: yched commentedYay ! Green ! Pushing to RTBC, then.
Comment #11
webchickyched asked me to fast-track this. Since it's just moving code around and doesn't actually change much, I committed to HEAD. Hopefully I didn't miss any cvs rm or add commands. :P~
Comment #12
yched CreditAttribution: yched commentedGosh, my IDE looks so much better that way :-). Thks !