search( array( 'status' => 'pending', 'claimed' => false, 'hook' => OrdersScheduler::get_action( 'import' ), ) ); $this->assertCount( 1, $actions ); $action_ids = array_keys( $actions ); $action_id = $action_ids[0]; $action = get_post( $action_id ); $this->assertEquals( WPPostStore::JOB_PRIORITY, $action->menu_order ); OrdersScheduler::clear_queued_actions(); } }