I added drupalGetNodeByTitle function to drupal_web_test_case.php (patch attached).
NodeLoadMultipleUnitTest and NodeRSSContentTestCase are not applicable for D6 in my opinion so i commented them out.
I have a few problems related to D7 => D6 conversion:
1. In NodePostSettingsTestCase the form field 'node_submitted' in 'admin/build/node-type/page' (D7) is the same as 'node_options[status]' in 'admin/content/node-type/page' (D6) ? If not then what is ?
2.I don't think in D6 we have a permission equivalent for 'bypass node access' (i don't think it is the same as D6's 'administer nodes'). For '$web_user = $this->drupalCreateUser(array('bypass node access'));' I get Invalid permission bypass node access.
| Comment | File | Size | Author |
|---|---|---|---|
| drupal_get_node_by_title.patch | 660 bytes | andreiashu | |
| node.test | 22.92 KB | andreiashu |
Comments
Comment #1
andreiashu commentedSet to "needs more info". I need your suggestions, after that I'll try to finish this.
Comment #2
boombatower commented#2 seems to make sense and I would remove the test/comment.
The overriding of the drupalGetNodeByTitle() makes sense.
I'll have to look at #1.
Comment #3
boombatower commentedThe node_submitted field appears to be new...so comment out that test as well.
Comment #4
boombatower commentedPlease re-open if you have further interest in porting the test.