From 3b169b28a7bac816ed91b189655bd2b3fce441b9 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sun, 17 Sep 2023 15:19:10 +0200 Subject: [PATCH] update settings version to 1.7 --- inc/class-statifyblacklist.php | 4 ++-- test/StatifyBlacklist_System_Test.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/inc/class-statifyblacklist.php b/inc/class-statifyblacklist.php index a83fb28..375ce7d 100644 --- a/inc/class-statifyblacklist.php +++ b/inc/class-statifyblacklist.php @@ -22,9 +22,9 @@ class StatifyBlacklist { * Plugin major version. * * @since 1.4.0 - * @var int VERSION_MAIN + * @var float VERSION_MAIN */ - const VERSION_MAIN = 1.6; + const VERSION_MAIN = 1.7; /** * Operation mode "normal". diff --git a/test/StatifyBlacklist_System_Test.php b/test/StatifyBlacklist_System_Test.php index f94fe89..b9de750 100644 --- a/test/StatifyBlacklist_System_Test.php +++ b/test/StatifyBlacklist_System_Test.php @@ -47,7 +47,7 @@ class StatifyBlacklist_System_Test extends PHPUnit\Framework\TestCase { $this->assertEquals( 4, count( $options_updated['target'] ) ); $this->assertEquals( 2, count( $options_updated['ip'] ) ); $this->assertEquals( 3, count( $options_updated['ua'] ) ); - $this->assertEquals( 1.6, $options_updated['version'] ); + $this->assertEquals( StatifyBlacklist::VERSION_MAIN, $options_updated['version'] ); // Verify that original attributes are unchanged. $this->assertEquals( $options13['active_referer'], $options_updated['referer']['active'] ); @@ -86,7 +86,6 @@ class StatifyBlacklist_System_Test extends PHPUnit\Framework\TestCase { ), $options_updated['ua']['blacklist'] ); - $this->assertEquals( 1.6, $options_updated['version'] ); $this->assertEquals( StatifyBlacklist::VERSION_MAIN, $options_updated['version'] ); } }