diff --git a/lib/discourse.php b/lib/discourse.php index 894ad34..5ff1dc2 100644 --- a/lib/discourse.php +++ b/lib/discourse.php @@ -223,7 +223,7 @@ class Discourse { $saved_values = get_option( 'discourse_configurable_text' ); $default_values = $this->discourse_configurable_text; $merged_values = array_merge( $default_values, $saved_values ); - array_walk( $merged_values, 'self::register_text_translations' ); + array_walk( $merged_values, self::class . '::register_text_translations' ); update_option( $group_name, $merged_values ); } else { add_option( $group_name, $this->$group_name ); diff --git a/phpunit.xml b/phpunit.xml index 1dc824b..e0aadc4 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,13 @@ - + lib diff --git a/tests/phpunit/multisite.xml b/tests/phpunit/multisite.xml index d630cbb..ad25824 100644 --- a/tests/phpunit/multisite.xml +++ b/tests/phpunit/multisite.xml @@ -1,25 +1,12 @@ - - - + + + + - - - multisite/ - - - - - lib/discourse-publish.php - lib/sync-discourse-topic.php - - + + + multisite/ + +