public function setUp() { parent::setUp(); $this->plugin->load_admin(); // Setup posts $this->posts = $this->load_fixture('posts'); }
public function setUp() { parent::setUp(); global $wp_rewrite; $wp_rewrite->set_permalink_structure('/%year%/%monthnum%/%day%/%postname%/'); // Set up custom post type - 'test' $args = array('hierarchical' => true, 'public' => true); register_post_type('test', $args); // Setup posts $this->posts = $this->load_fixture('posts', 'lib_posts.json'); }
public function setUp() { parent::setUp(); $this->plugin->load_admin(); $this->navman = $this->plugin->admin->load_manager(); // Setup users $this->users = array('admin' => $this->factory->user->create(array('role' => 'administrator')), 'contrib' => $this->factory->user->create(array('role' => 'contributor'))); // Setup posts $this->posts = $this->load_fixture('posts'); // Requires the BU Section Editing plugin to be activated if (is_plugin_active('bu-section-editing/bu-section-editing.php')) { $this->generate_section_group(); } }
public function setUp() { parent::setUp(); $this->plugin->load_widget(); }