Skip to content
This repository was archived by the owner on May 2, 2024. It is now read-only.

Commit d20d282

Browse files
committed
Fixes failing tests.
1 parent 0b299dc commit d20d282

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/WpGears/Gearman/ClientTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function test_it_will_add_hook_to_gearman_client_if_present() {
135135
$payload = array(
136136
'hook' => 'action_b',
137137
'args' => array(),
138-
'blog_id' => is_multisite() ? get_current_blog_id() : false,
138+
'blog_id' => function_exists( 'is_multisite' ) && is_multisite() ? get_current_blog_id() : false,
139139
);
140140

141141
$group = defined( 'WP_ASYNC_TASK_SALT' ) ? WP_ASYNC_TASK_SALT . ':WP_Async_Task' : '';

tests/WpGears/PluginTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function setUp() {
1010
parent::setUp();
1111

1212
$this->plugin = new Plugin();
13+
$this->config_prefix = 'A' . uniqid();
1314
}
1415

1516
function tearDown() {

0 commit comments

Comments
 (0)