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

boombatower’s picture

Project: SimpleTest » Drupal core
Version: 6.x-2.4 » 7.x-dev
Component: Code » simpletest.module

Fixed in D7 core then backported.

damien tournoud’s picture

Status: Active » Closed (won't fix)

Won'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.