コード例 #1
0
 public function test_callback()
 {
     global $wp_current_filter;
     $action = $this->connector->actions[0];
     $wp_current_filter[] = $action;
     $this->connector->callback();
     $this->assertGreaterThan(0, did_action($this->action_prefix . 'callback_' . $action));
     $this->assertGreaterThan(0, did_action($this->action_prefix . 'child_callback_' . $action));
 }