mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
In this particular case, the test class contains a `set_up()` method which sets properties only used by select tests, while the fixture method is being run for all tests. There were a few ways this could be fixed: * As the values do not change across tests, use `set_up_before_class()` to set (static) properties instead. * For those values which are set up without a function call or variable interpolation, set the values in class constants. * Or set these values as local variables for those tests which actually use them. The implemented solution is a combination of options 2 and 3. Follow-up to [1106/tests], [53557], [53558]. Props jrf. See #56033. git-svn-id: https://develop.svn.wordpress.org/trunk@53850 602fd350-edb4-49c9-b593-d223f7449a82