When this module is enabled during simpletest runs, I receive all sorts of warnings:

array_diff_key() [function.array-diff-key]: Argument #1 is not an array Warning emf.sync.inc 45 emf_sync_lists()
array_diff_key() [function.array-diff-key]: Argument #2 is not an array Warning emf.sync.inc 46 emf_sync_lists()
array_intersect_key() [function.array-intersect-key]: Argument #1 is not an array Warning emf.sync.inc 47 emf_sync_lists()
Invalid argument supplied for foreach() Warning emf.sync.inc 49 emf_sync_lists()
Invalid argument supplied for foreach() Warning emf.sync.inc 53 emf_sync_lists()
Invalid argument supplied for foreach() Warning emf.sync.inc 57 emf_sync_lists()

CommentFileSizeAuthor
#1 emf-1265548-null-api-lists-1.patch788 bytesq0rban
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

q0rban’s picture

Status: Active » Needs review
FileSize
788 bytes

Attached patch fixes it for me.

pbuyle’s picture

Status: Needs review » Postponed (maintainer needs more info)

Which plugin did you use when running the test? The $api_lists variable expected to be an array is the result of the get_lists. If a plugin does not return an array, then the bug is in the plugin.