Skip to content

Commit

Permalink
Prevent duplicate test values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed Jun 7, 2024
1 parent 0890bdd commit 3b493b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ public function enableRevenue( $settings ) {
*/
public function testGetPostSettings() {
$_POST[ 'action' ] = 'plausible_analytics_save_options';
$_POST[ 'options' ] = wp_json_encode( [ [ 'name' => 'test', 'value' => 'test' ] ] );
$_POST[ 'options' ] = wp_json_encode( [ [ 'name' => 'post_test', 'value' => 'post_test' ] ] );

$settings = Helpers::get_settings();

$this->assertArrayHasKey( 'test', $settings );
$this->assertArrayHasKey( 'post_test', $settings );
}

/**
Expand Down

0 comments on commit 3b493b8

Please sign in to comment.