Make WordPress Core

Ticket #28637: patch-27023.diff

File patch-27023.diff, 591 bytes (added by ivanblagdan, 9 years ago)

A test that fails without the 28637-2 patch

  • tests/phpunit/tests/option/themeMods.php

    diff --git a/tests/phpunit/tests/option/themeMods.php b/tests/phpunit/tests/option/themeMods.php
    index 8bd8f5d..4413685 100644
    a b class Tests_Option_Theme_Mods extends WP_UnitTestCase { 
    3232                $this->assertEquals( '', get_theme_mod( 'test_remove' ) );
    3333        }
    3434
     35        function test_theme_mod_should_return_default_when_empty_string() {
     36                set_theme_mod( 'test_update_default_empty', '' );
     37                $this->assertEquals( 'expected', get_theme_mod( 'test_update_default_empty', 'expected' ) );
     38        }
     39
    3540}