Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I create a node with drupalCreateNode(array('body' => 'Test Data goes here'))
, the generated node does get a body of 'Test Data goes here', but it gets a teaser of the result of $this->randomName(32)
.
This is because on line 106 of drupal_web_test_case.php, the code creates a default teaser based on the default node, but it doesn't create a teaser based on the settings node. Fix seems simple, and will attempt to deliver a patch once I am back in Denver with stable internet.
Comments
Comment #1
boombatower CreditAttribution: boombatower commentedThis effect Drupal 7 and should be changed there and backported.
Complaint makes sense, I would roll patch but CVS doesn't work from hotel (port blocked).
Comment #2
Dave ReidThis should be fixed now as a result of #308296: drupalCreateNode should use the logged in user if available.