Skip to content

Commit fc45642

Browse files
committed
Skip tests that require an object cache not be in use for memcached runs.
1 parent facd672 commit fc45642

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

tests/phpunit/tests/rest-api/rest-collaboration-server.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,10 @@ public function test_collaboration_awareness_client_id_cannot_be_used_by_another
12881288
* @ticket 64696
12891289
*/
12901290
public function test_collaboration_awareness_client_reactivates_after_expiry(): void {
1291+
if ( wp_using_ext_object_cache() ) {
1292+
$this->markTestSkipped( 'This test requires that an external object cache is not in use.' );
1293+
}
1294+
12911295
wp_set_current_user( self::$editor_id );
12921296
global $wpdb;
12931297

@@ -2292,6 +2296,10 @@ public function test_cron_cleanup_deletes_expired_awareness_rows(): void {
22922296
* @ticket 64696
22932297
*/
22942298
public function test_collaboration_awareness_user_id_round_trip(): void {
2299+
if ( wp_using_ext_object_cache() ) {
2300+
$this->markTestSkipped( 'This test requires that an external object cache is not in use.' );
2301+
}
2302+
22952303
global $wpdb;
22962304

22972305
wp_set_current_user( self::$editor_id );
@@ -2398,6 +2406,10 @@ public function test_collaboration_room_name_max_length_rejected(): void {
23982406
* @ticket 64696
23992407
*/
24002408
public function test_collaboration_null_awareness_skips_write(): void {
2409+
if ( wp_using_ext_object_cache() ) {
2410+
$this->markTestSkipped( 'This test requires that an external object cache is not in use.' );
2411+
}
2412+
24012413
global $wpdb;
24022414

24032415
wp_set_current_user( self::$editor_id );
@@ -2820,6 +2832,10 @@ public function test_wp_is_collaboration_enabled_false_when_option_off(): void {
28202832
* @ticket 64696
28212833
*/
28222834
public function test_collaboration_awareness_no_duplicate_rows(): void {
2835+
if ( wp_using_ext_object_cache() ) {
2836+
$this->markTestSkipped( 'This test requires that an external object cache is not in use.' );
2837+
}
2838+
28232839
global $wpdb;
28242840

28252841
wp_set_current_user( self::$editor_id );
@@ -2853,6 +2869,10 @@ public function test_collaboration_awareness_no_duplicate_rows(): void {
28532869
* @ticket 64696
28542870
*/
28552871
public function test_collaboration_awareness_one_row_per_client(): void {
2872+
if ( wp_using_ext_object_cache() ) {
2873+
$this->markTestSkipped( 'This test requires that an external object cache is not in use.' );
2874+
}
2875+
28562876
global $wpdb;
28572877

28582878
wp_set_current_user( self::$editor_id );

0 commit comments

Comments
 (0)