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.
Running node revision test on my box I have the following fatal error:
Fatal error: Unsupported operand types in D:\psegno\sviluppo\drupal-7.sviluppo\modules\simpletest\drupal_web_test_case.php on line 734
Comment | File | Size | Author |
---|---|---|---|
#1 | node_revision_test-606460-2.patch | 815 bytes | peximo |
Comments
Comment #1
peximo CreditAttribution: peximo commentedIn NodeRevisionsTestCase:setUp() first is created a node then got the settings from this node and create a new one (revision).
The test fail because in DrupalTestCase:drupalCreateNode() we control if $settings->language is setted but not if is empty.
The patch control if $settings->language is empty and solve this problem.
Comment #2
peximo CreditAttribution: peximo commentedComment #3
Dave ReidThe code in NodeRevisionsTestCase:setUp() doesn't set a language value for the nodes passed into drupalCreateNode() so this should work just fine. Also, we would have seen this failure from the test bot. Double check all your code is the most up-to-date code.
Comment #4
peximo CreditAttribution: peximo commentedI have the latest checkout, it is a fatal error so the test bot migth not report it. Just run the node revision test on your box and you see this.
Comment #5
plachI confirmed this behavior on my box, fresh head checkout and fresh install.
Comment #6
Dave ReidActually the bot should be reporting fatal errors. That's really odd...
Comment #7
Dave ReidTested and that's the best fix for this.
Comment #8
webchickThanks. I asked Dave to file a follow-up issue in the PIFR queue about the fact that it's not catching this.
Committed to HEAD!
Comment #9
Dave Reid#606522: Testbot is missing fatal errors