Skip to content

Commit

Permalink
Fix a version incompatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeymitr committed May 7, 2024
1 parent c6d0112 commit a0e12b9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions projects/packages/google-analytics/tests/php/test-ga-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,8 @@ function () {
$instance->insert_code();
$actual = ob_get_clean();

$this->assertStringContainsString(
'gtag( "event", "jetpack_testing_event", {"event_category":"somecat","event_label":"somelabel","value":"someval"} )',
$actual
);

$this->assertStringContainsString(
'gtag( "event", "another_jetpack_testing_event", {"event_category":"foo","event_label":"bar","value":"baz"} );',
$actual
);
$this->assertTrue( false !== strpos( $actual, 'gtag( "event", "jetpack_testing_event", {"event_category":"somecat","event_label":"somelabel","value":"someval"} )' ) );
$this->assertTrue( false !== strpos( $actual, 'gtag( "event", "another_jetpack_testing_event", {"event_category":"foo","event_label":"bar","value":"baz"} );' ) );
}

/**
Expand Down

0 comments on commit a0e12b9

Please sign in to comment.