For the test class of my i18n submodule, http://drupal.org/project/i18n_node_reference, I would like to extend the Simpletest class Drupali18nTestCase. I need to test synchronisation of a node reference field, so I need to have two different node types with multilanguage enabled. By default however, the createNode and createNodeTranslation functions will only perform actions on 'Basic page' nodes. Even though createNode allows you to set a $type as the first parameter, it checks explicitly for 'Basic page' in its assertRaw function which will always fail for other node types!
Can you please review and apply my path? That small effort will help me a lot, as it will make my module testable and more solid. This is a module that I know other developers have been waiting for.
Thanks for your work by the way!
Regards,
Bas
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | i18n-refactor_createNode-2001818-1.patch | 2.49 KB | bvanmeurs |
Comments
Comment #1
bvanmeurs commentedFailing tests: http://qa.drupal.org/pifr/test/521978
All caused by createNode and createNodeTranslation.
Comment #2
jose reyero commentedOk, committed, thanks.
Comment #3
bvanmeurs commentedThanks