function test_post_is_pushed_to_remote_wp_on_post_published_hook() { $master = new Master(); $master->publish_post($this->ID, $this->post); $mapping = get_post_meta($this->ID, MAPPING_META_KEY, true); $remote_id = $mapping['site1']; $remote_post = get_post($remote_id); $this->assertEquals($this->post->post_content, $remote_post->post_content); }