WordPress.org

Make WordPress Core

Changeset 226 in tests


Ignore:
Timestamp:
06/10/2009 09:25:29 PM (12 years ago)
Author:
westi
Message:

Start adding some tests for clean_url()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_formatting.php

    r219 r226  
    224224}
    225225
     226class TestCleanUrl extends WPTestCase {
     227    function test_spaces() {
     228        $this->assertEquals('http://example.com/Mr WordPress', clean_url('http://example.com/Mr WordPress'));
     229        $this->assertEquals('http://example.com/Mr%20WordPress', clean_url('http://example.com/Mr&20WordPress'));
     230    }
     231}
    226232?>
Note: See TracChangeset for help on using the changeset viewer.