From 3b493b8223c774afbdf2cd4955f513d7cbd4f12f Mon Sep 17 00:00:00 2001 From: Dan0sz <18595395+Dan0sz@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:39:20 +0200 Subject: [PATCH] Prevent duplicate test values. --- tests/integration/HelpersTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/HelpersTest.php b/tests/integration/HelpersTest.php index 69d3dcba..9e39c20a 100644 --- a/tests/integration/HelpersTest.php +++ b/tests/integration/HelpersTest.php @@ -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 ); } /**