WordPress.org

Make WordPress Core

Changeset 262 in tests


Ignore:
Timestamp:
11/18/2009 08:33:54 AM (9 years ago)
Author:
westi
Message:

Add some testcases for strip_shortcodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_shortcode.php

    r261 r262  
    302302
    303303}
     304//http://core.trac.wordpress.org/ticket/10326
     305class TestShortcodeStripping extends WPTestCase {
     306    function test_strip_shortcodes() {
     307        $this->assertEquals('before',strip_shortcodes('before[gallery]'));
     308        $this->assertEquals('after',strip_shortcodes('[gallery]after'));
     309        $this->assertEquals('beforeafter',strip_shortcodes('before[gallery]after'));
     310    }
     311}
    304312
    305313?>
Note: See TracChangeset for help on using the changeset viewer.