Skip to content

Commit 9b22ca4

Browse files
committed
Stub the send_alert() method of HealthJob during tests
Now that index setting updating is enabled on all sites, it runs on this test and tries to send messages - just need to stub it out to prevent errors
1 parent 2b7b152 commit 9b22ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function test__vip_search_healthjob_check_health_with_inactive_features()
5858
// Mock the health job
5959
$job = $this->getMockBuilder( \Automattic\VIP\Search\HealthJob::class )
6060
->setConstructorArgs( [ $es ] )
61-
->setMethods( array( 'process_document_count_health_results' ) )
61+
->setMethods( array( 'process_document_count_health_results', 'send_alert' ) )
6262
->getMock();
6363

6464
// Only expect it to process 1 set of results (for regular posts)

0 commit comments

Comments
 (0)