| @@ -530,9 +530,9 @@ | ||
| 530 | 530 | private static function _renderPermissions( $args ) { |
| 531 | 531 | $chart_id = $args[1]; |
| 532 | 532 | |
| 533 | 533 | // ignore for unit tests because Travis throws the error "Indirect modification of overloaded property Visualizer_Render_Page_Data::$permissions has no effect". |
| 534 | - if ( defined( 'WP_TESTS_DOMAIN' ) && function_exists( 'tests_add_filter' ) ) { | |
| 534 | + if ( defined( 'WP_TESTS_DOMAIN' ) ) { | |
| 535 | 535 | return; |
| 536 | 536 | } |
| 537 | 537 | |
| 538 | 538 | $permissions = apply_filters( 'visualizer_pro_get_permissions', null, $chart_id ); |