function test_pmp_subscribe_to_updates_markup() { $post = get_post($this->factory->post->create()); pmp_subscribe_to_updates_markup($post); $this->expectOutputRegex('/checked/'); $this->markTestIncomplete('This test has not been implemented yet.'); }
/** * The PMP meta box to end all PMP meta boxes. * * @since 0.3 */ function pmp_mega_meta_box($post) { wp_nonce_field('pmp_mega_meta_box', 'pmp_mega_meta_box_nonce'); $pmp_guid = get_post_meta($post->ID, 'pmp_guid', true); pmp_last_modified_meta($post); if (!empty($pmp_guid) && !pmp_post_is_mine($post->ID)) { pmp_subscribe_to_updates_markup($post); } else { /* * Container elements for async select menus for Groups, Series and Property for the post */ if ($post->post_status == 'publish') { ?> <div id="pmp-override-defaults"> <p>Modify the Group, Series and Property settings for this post.</p> <?php foreach (array('group', 'series', 'property') as $type) { ?> <div id="pmp-<?php echo $type; ?> -select-for-post" class="pmp-select-for-post"> <span class="spinner"></span> </div> <?php } ?> </div><?php } pmp_publish_and_push_to_pmp_button($post); /* * Javascript required for the async select menus for Groups, Series, Property */ ?> <script type="text/javascript"> var PMP = <?php echo json_encode(pmp_json_obj(array('post_id' => $post->ID))); ?> ; </script><?php pmp_async_select_template(); } }