Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
tests
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 May 2008 at 19:08 UTC
Updated:
28 May 2008 at 23:11 UTC
Jump to comment: Most recent file
xmlrpc.inc.test is not up to date with the current simpletest framework, and running it results in 0 passes, 0 failed, 0 errors. The test starts with:
if (!$this->drupalModuleEnable('simpletest_xmlrpc')) {
return FALSE;
}
DrupalWebTestCase::drupalModuleEnable() doesn't have a return value, so nothing gets executed.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drupalModuleEnableCleanup.patch | 2.23 KB | boombatower |
Comments
Comment #1
boombatower commentedFixed
drupalModuleEnableissue and made small cleanup changes to XMLRPC test.Comment #2
dries commentedShouldn't "XML-RPC validator1" be "XML-RPC validator1" too?
Can we make these tests run without simpletest_xmlrpc.module?
Comment #3
chx commentedHardly. You need a module which defines hook_xmlrpc.
Comment #4
floretan commentedI'm sure there are other hooks that would need a sample implementation to be tested efficiently. Rather than having simpletest_xmlrpc.module, wouldn't it make sense to have a simpletest_hooks.modules that would implement hooks for testing purposes?
Comment #5
boombatower commentedPatch #1 doesn't conflict with removing the simpletest_xmlrpc.module. The functions are flawed and need the patch. The other portion just cleans up the xmlrpc.test.
The patch can be committed and the issues with hooks can be further discussed. If necessary I can create a separate issue for the patch, but it fixes a bug and that should be fixed.
Comment #6
dries commentedCommitted to CVS HEAD. I fixed the typo myself.
Comment #7
boombatower commentedBy comment #2 I wasn't sure what you were talking about since the two strings in quotes are the same. After looking at the commit I see the issue. I'm not sure why it was suffixed with a 1.
This was one of the many oddities that I tried to cleanup, but can't get them all. :)
Comment #8
boombatower commentedChange component is relation to http://drupal.org/node/253744.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.