Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2008 at 10:23 UTC
Updated:
19 Oct 2008 at 20:56 UTC
Hello,
I get a fatal error on line 392 of drupal_web_test_case.php about unsupported operand types. I'm running PHP Version 5.2.6.
$node = ($settings + $defaults);
This seems to fix the problem for me:
$node = array_merge((array) $defaults, (array) $settings);
Comments
Comment #1
boombatower commentedFixed in D7 core then backported.
Comment #2
damien tournoud commentedWon't fix: please call drupalCreateNode() with a proper associative array, as documented. If you are getting this issue on one of the core tests, please document which one and get it fixed.