Make WordPress Core

Ticket #10706: strict-force-ssl-test.diff

File strict-force-ssl-test.diff, 863 bytes (added by nbachiyski, 16 years ago)
  • wp-testcase/test_includes_functions.php

     
    108108
    109109
    110110        function test_wp_unique_filename() {
    111                 $this->knownWPBug(6294);       
     111                $this->knownWPBug(6294);
    112112               
    113113                /* this test requires:
    114114                   - that you have dir + file 'wp-testdata/images/test-image.png',
     
    238238                                unlink($testdir . $expected[$key]);
    239239                }
    240240        }
     241       
     242        function test_force_ssl_admin() {
     243                force_ssl_admin( true );
     244                $this->assertTrue( force_ssl_admin() );
     245                force_ssl_admin( false );
     246                $this->assertFalse( force_ssl_admin() );
     247                force_ssl_admin( true );
     248                $this->assertTrue( force_ssl_admin() );
     249                force_ssl_admin( false );
     250                $this->assertFalse( force_ssl_admin() );
     251        }
    241252
    242253}
    243254