protected function create_post_array(ActionScheduler_Action $action, DateTime $date = NULL)
 {
     $post = array('post_type' => self::POST_TYPE, 'post_title' => $action->get_hook(), 'post_content' => json_encode($action->get_args()), 'post_status' => $action->is_finished() ? 'publish' : 'pending', 'post_date_gmt' => $this->get_timestamp($action, $date), 'post_date' => $this->get_local_timestamp($action, $date));
     return $post;
 }
 public function test_set_hook()
 {
     $action = new ActionScheduler_Action('my_hook');
     $this->assertEquals('my_hook', $action->get_hook());
 }