Make WordPress Core

Changeset 497 in tests


Ignore:
Timestamp:
01/26/2012 08:31:02 AM (13 years ago)
Author:
westi
Message:

Add a simple extra size test for the potential improvements of #WP11214.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_theme.php

    r495 r497  
    360360        $this->assertLessThanOrEqual(261998, strlen(serialize($themes)));
    361361    }
     362
     363    // #11214 looks at how we can reduce the inmemory size even more
     364    function test_smaller_storage() {
     365        $this->knownWPBug(11214);
     366        $themes = get_themes();
     367        $theme_names = array_keys($themes);
     368        $this->assertEquals(87, count($theme_names));
     369        $this->assertLessThanOrEqual(136342, strlen(serialize($themes)));
     370    }
    362371}
    363372
Note: See TracChangeset for help on using the changeset viewer.