[wp-trac] [WordPress Trac] #29123: Undefined index within testcase.php _restore_hooks()

WordPress Trac noreply at wordpress.org
Tue Aug 5 19:45:31 UTC 2014


#29123: Undefined index within testcase.php _restore_hooks()
------------------------------+-----------------------------
 Reporter:  kevinlangleyjr    |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Due to the change made here,
 https://core.trac.wordpress.org/changeset/29251 to backup and restore
 these global variables, all unit tests are failing for me with  {{{
 Undefined index: merged_filters }}}. By adding a check on line 101 to
 check if the value exists within the {{{ self::$hooks_saved }}} would
 prevent this error from occurring.

 Here is an example of the phpunit output there. https://travis-
 ci.org/voceconnect/thermal-api/jobs/31176473

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29123>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list