* Retrieve some events' post objects for use in testing
*
* @return array
*/
staticfunctionget_events_from_store(){
global$wpdb;
$table_name=self::get_table_name();
$events=$wpdb->get_results($wpdb->prepare("SELECT * FROM {$table_name} WHERE status = %s ORDER BY `timestamp` ASC LIMIT 10;",\Automattic\WP\Cron_Control\Events_Store::STATUS_PENDING),'OBJECT');
$events=$wpdb->get_results($wpdb->prepare("SELECT * FROM {$table_name} WHERE status = %s ORDER BY `timestamp` ASC LIMIT 10;",\Automattic\WP\Cron_Control\Events_Store::STATUS_PENDING),'OBJECT');// Cannot prepare table name. @codingStandardsIgnoreLine
$parsed_events=array();
...
...
@@ -62,10 +75,15 @@ class Utils {
/**
* Check that two arrays are equal
*
* @param array $expected Array of expected values.
* @param array $test Array of values to test against $expected.
* @param mixed $context Is this a test itself, or used within a test.