Skip to content

Commit c2dafad

Browse files
committed
AHHH LINT
1 parent e990232 commit c2dafad

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

tests/files/test-wp-filesystem-vip.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,9 @@ public function test_move_with_no_filesystem(): void {
368368
self::assertInstanceOf( WP_Filesystem_VIP::class, $wp_filesystem );
369369
/** @var WP_Filesystem_Base $wp_filesystem */
370370

371-
$tmp = get_temp_dir();
372-
$source = $tmp . 'source.txt';
373-
$dest = $tmp . 'dest.txt';
374-
g.
371+
$tmp = get_temp_dir();
372+
$source = $tmp . 'source.txt';
373+
$dest = $tmp . 'dest.txt';
375374
$original = error_reporting();
376375
try {
377376
$actual = $wp_filesystem->move( $source, $dest );

tests/search/includes/classes/test-class-queue.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -743,15 +743,15 @@ public function test_ratelimit_indexing_cache_count_should_not_exists_if_early_r
743743
* Ensure that the queue isn't populated if ratelimiting isn't triggered
744744
*/
745745
public function test_ratelimit_indexing_queue_should_be_empty_if_no_ratelimiting() {
746-
$this->queue::$max_indexing_op_count = PHP_INT_MAX; // Ensure ratelimiting is disabled
747-
$post_ids = range( 10, 20 );
748-
749746
global $wpdb;
750747

751748
$table_name = $this->queue->schema->get_table_name();
752749

753750
$this->add_posts_to_queue( range( 3, 9 ) );
754751

752+
// phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found
753+
$this->queue::$max_indexing_op_count = PHP_INT_MAX; // Ensure ratelimiting is disabled
754+
755755
$this->queue->ratelimit_indexing( true, $this->sync_manager, 'post' );
756756

757757
$this->assertEquals( 7, wp_cache_get( $this->queue::INDEX_COUNT_CACHE_KEY, $this->queue::INDEX_COUNT_CACHE_GROUP ), 'indexing ops count should be 7' );
@@ -769,6 +769,8 @@ public function test_ratelimit_indexing_queue_should_be_empty_if_no_ratelimiting
769769

770770
$this->sync_manager->reset_sync_queue();
771771

772+
// phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found
773+
$post_ids = range( 10, 20 );
772774
$this->add_posts_to_queue( $post_ids );
773775

774776
$this->queue->ratelimit_indexing( true, $this->sync_manager, 'post' );
@@ -804,6 +806,7 @@ public function test_ratelimit_indexing_queue_should_be_populated_if_ratelimitin
804806
$post_ids = range( 3, 9 );
805807
$this->add_posts_to_queue( $post_ids );
806808

809+
// phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found
807810
$this->queue::$max_indexing_op_count = 0; // Ensure ratelimiting is enabled
808811

809812
$this->queue->ratelimit_indexing( true, $this->sync_manager, 'post' );

0 commit comments

Comments
 (0)