You appear to be a bot. Output may be restricted
Description
Tests oik_privacy_policy_menu_selector with auto_add set
Usage
Tests_admin_oik_privacy_policy::test_oik_privacy_policy_menu_selector_auto_add_bb_BB();
Parameters
Returns
void
Source
File name: oik-privacy-policy/tests/test-admin-oik-privacy-policy.php
Lines:
1 to 21 of 21
function test_oik_privacy_policy_menu_selector_auto_add_bb_BB() { $this->switch_to_locale( 'bb_BB' ); add_filter( "wp_get_nav_menus", array( $this, "__return_just_one" ), 10, 2 ); $menus = wp_get_nav_menus( $args = array() ); $options = get_option( 'nav_menu_options' ); $options['auto_add'] = 0; $options['auto_add'] = array( $menus[0] ->term_id ); update_option( 'nav_menu_options', $options ); $menus = oik_privacy_policy_menu_selector(); remove_filter( "wp_get_nav_menus", array( $this, "__return_just_one" ), 10, 2 ); $html = bw_ret(); $this->assertNotNull( $html ); $html_array = $this->tag_break( $html ); //$this->generate_expected_file( $html_array ); $this->assertArrayEqualsFile( $html_array ); $this->switch_to_locale( 'en_GB' ); }