File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 define ('WP_CLI ' , true );
1616 }
1717
18- // Очистка всех очередей
18+ // Очистка всех очередей и статусов
1919 global $ wpdb ;
2020 $ wpdb ->query ("DELETE FROM {$ wpdb ->options } WHERE option_name LIKE 'wp_queue_%' " );
21+
22+ // Явная очистка статуса паузы
23+ delete_site_option ('wp_queue_status_default ' );
24+ delete_site_option ('wp_queue_status_emails ' );
2125});
2226
2327afterEach (function (): void {
Original file line number Diff line number Diff line change 99use WPQueue \WPQueue ;
1010
1111beforeEach (function (): void {
12- // Очистка всех очередей
12+ // Очистка всех очередей и статусов
1313 global $ wpdb ;
1414 $ wpdb ->query ("DELETE FROM {$ wpdb ->options } WHERE option_name LIKE 'wp_queue_%' " );
1515
16+ // Явная очистка статуса паузы
17+ delete_site_option ('wp_queue_status_default ' );
18+ delete_site_option ('wp_queue_status_emails ' );
19+
1620 // Мок для REST API
1721 global $ wp_rest_server ;
1822 $ wp_rest_server = new \WP_REST_Server ();
You can’t perform that action at this time.
0 commit comments