Custom Pulse - Automated Testing
Few edits to make ZON behave with automated testing:
- PHP7 reference update in
core/Zon.php
(as taken from latest ZON). - Updated static reference from
$this::
toself::
inlibraries/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.