• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Test_WP_Customize_Nav_Menu_Setting::set_up() – Set up a test case.

You appear to be a bot. Output may be restricted

Description

Set up a test case.

Usage

Test_WP_Customize_Nav_Menu_Setting::set_up();

Parameters

Returns

void

Source

File name: wordpress-develop-tests/phpunit/tests/customize/nav-menu-setting.php


Lines:

1 to 10 of 10
  public function set_up() {
    parent::set_up();
    require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
    wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );

    global $wp_customize;
    $this->wp_customize = new WP_Customize_Manager();
    $wp_customize       = $this->wp_customize;
  }
 

 View on GitHub

Published: 20th March 2022 | Last updated: 20th March 2022

Primary Sidebar

Information

Function name: Test_WP_Customize_Nav_Menu_Setting::set_up
Class ref: Test_WP_Customize_Nav_Menu_Setting
Plugin ref: WordPress develop tests
Version: 5.9.3
Sourcefile: phpunit/tests/customize/nav-menu-setting.php
File ref: phpunit/tests/customize/nav-menu-setting.php
Deprecated?: No
API Letters: C,M,N,T,W

Footer

WordPress develop tests
WordPress develop tests
WordPress develop tests a2z
WordPress 6.4.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  develop.wp-a2z.org
© Copyright WordPress develop tests 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites