You appear to be a bot. Output may be restricted
Description
Tests set_url_scheme returns https:
Test added for oik v3.2.0-RC1. Shortcode expansion now returns the saved HTML when the shortcode is unchanged. So the scheme will not change due to changing the value of $_SERVER['HTTPS']. To test this properly we'll have to the same
Usage
Tests_nivo_php::test_is_ssl();
Parameters
Returns
void
Source
File name: oik-nivo-slider/tests/test-nivo-php.php
Lines:
1 to 17 of 17
function test_is_ssl() { $_SERVER['HTTPS'] = 'on'; $https = bw_array_get( $_SERVER, 'HTTPS', null ); $this->assertEquals( "on", $https ); $secure = is_ssl(); $this->assertTrue( $secure ); $url = WP_PLUGIN_URL; //echo $url; $url = set_url_scheme( $url ); //echo $url; $this->assertStringContainsString( "https://", $url ); }