public function test_maybe_run_ajax_cache_should_return_nothing_if_there_is_no_message() { $GLOBALS['post'] = $this->factory()->post->create_and_get(array('post_title' => 'Hello World')); $this->expectOutputString(''); $this->wp_embed->maybe_run_ajax_cache(); unset($GLOBALS['post']); }