You appear to be a bot. Output may be restricted
Description
Tests translation for oik-nivo-slider's admin menu this tests oik_nivo_lazy_admin_menu
- How do we test that the setting has been registered?
It's probably good enough to ensure the array key exists. This test printed output: Array ( [type] => string [group] => oik_nivo_options [description] => [sanitize_callback] => oik_plugins_validate [show_in_rest] => )
- How do we test that the submenu page has been added?
- How do we test the authority?
- This test assumes oik-nivo-slider is activated
Usage
Tests_admin_oik_nivo_slider::test_oik_nivo_admin_menu();
Parameters
Returns
void
Source
File name: oik-nivo-slider/tests/test-admin-oik-nivo-slider.php
Lines:
1 to 12 of 12
function test_oik_nivo_admin_menu() { wp_set_current_user( 1 ); $this->unset_submenu(); $this->switch_to_locale( 'en_GB' ); oik_nivo_admin_menu(); $registered = get_registered_settings(); $this->assertArrayHasKey( 'bw_nivo_slider', $registered ); global $submenu; $html = $this->arraytohtml( $submenu ); //$this->generate_expected_file( $html ); $this->assertArrayEqualsFile( $html ); }