Base.php
2 years ago
EasyDigitalDownloads.php
4 years ago
MatomoTestEcommerce.php
4 years ago
MemberPress.php
3 years ago
Woocommerce.php
2 years ago
MatomoTestEcommerce.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WpMatomo\Ecommerce; |
| 4 | |
| 5 | /** |
| 6 | * this class is required only for phpunit tests. |
| 7 | * It allow to change the visibility of some methods of the Base class |
| 8 | * and so allow to test them in the unit tests |
| 9 | * |
| 10 | * phpcs:disable Generic.CodeAnalysis.UselessOverridingMethod.Found |
| 11 | */ |
| 12 | class MatomoTestEcommerce extends Base { |
| 13 | |
| 14 | /** |
| 15 | * Render public the wrap_script method. Required for the unit tests |
| 16 | * |
| 17 | * @param string $script |
| 18 | * |
| 19 | * @return string |
| 20 | * @see Base::wrap_script() |
| 21 | */ |
| 22 | public function wrap_script( $script ) { |
| 23 | return parent::wrap_script( $script ); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Render public the wrap_script method. Required for the unit tests |
| 28 | * |
| 29 | * @param [] $params |
| 30 | * |
| 31 | * @return string |
| 32 | * @see Base::make_matomo_js_tracker_call() |
| 33 | */ |
| 34 | public function make_matomo_js_tracker_call( $params ) { |
| 35 | return parent::make_matomo_js_tracker_call( $params ); |
| 36 | } |
| 37 | } |
| 38 |