Skip to content

Custom Pulse - Automated Testing

Josh Smith requested to merge feature/custom_pulse_automated_testing into custom/pulse

Few edits to make ZON behave with automated testing:

  1. PHP7 reference update in core/Zon.php (as taken from latest ZON).
  2. Updated static reference from $this:: to self:: in libraries/DF_Rest_Controller.php.

The second change allows us to mock DF_Rest_Where objects and use the grouping() method, which references a static property. This does not work with $this::, as the scope resolution operator will reference the mocked objects instance, which does not have the static properties. Using self:: references the original class, and therefore the static properties.

Edited by Josh Smith

Merge request reports