You appear to be a bot. Output may be restricted
Description
Tests oik_nivo_options_do_page which assumes admin/oik-nivo-slider.php has been loaded
Note: For environment dependence we'll need to update the settings.
Usage
Tests_admin_oik_nivo_slider::test_oik_nivo_options_do_page();
Parameters
Returns
void
Source
File name: oik-nivo-slider/tests/test-admin-oik-nivo-slider.php
Lines:
1 to 18 of 18
function test_oik_nivo_options_do_page() { $_SERVER['REQUEST_URI'] = "/"; $this->update_options(); $this->switch_to_locale( 'en_GB' ); ob_start(); oik_nivo_options_do_page(); $html = ob_get_contents(); ob_end_clean(); $this->assertNotNull( $html ); $html = $this->replace_admin_url( $html ); $html = $this->replace_home_url( $html ); $html_array = $this->tag_break( $html ); $this->assertNotNull( $html_array ); $html_array = $this->replace_nonce_with_nonsense( $html_array ); $html_array = $this->replace_nonce_with_nonsense( $html_array, "closedpostboxesnonce", "closedpostboxesnonce" ); //$this->generate_expected_file( $html_array ); $this->assertArrayEqualsFile( $html_array ); }